<html><body><p><tt>> From: "Tomasz.Wolski@ts.fujitsu.com" <Tomasz.Wolski@ts.fujitsu.com></tt><br><tt>>  </tt><br><tt>> Could you please tell me if the DMAPI implementation for GPFS is <br>> multi-thread safe? Are there any limitation towards using multiple <br>> threads within a single DM application process?</tt><br><tt>> For example: DM events are processed by multiple threads, which call<br>> dm* functions for manipulating file attributes – will there be any <br>> problem when two threads try to access the same file at the same time?</tt><br><tt>>  </tt><br><tt>> Is the libdmapi thread safe?</tt><br><tt>> </tt><br><br><tt>With the possible exception of dm_init_service it should be thread safe.</tt><br><tt>Dmapi does offer access rights to allow or prevent concurrent access to a file.</tt><br><tt>If you are not using the access rights, internally Spectrum Scale will serialize</tt><br><tt>the dmapi calls like it would serialize for posix -- some calls will proceed in </tt><br><tt>parallel (e.g. reads, non-overlapping writes) and some will be serialized </tt><br><tt>(e.g. EA updates).</tt><br><br><tt>-Wayne</tt><br><BR>
</body></html>