<html><body><p><tt>&gt; From: &quot;Tomasz.Wolski@ts.fujitsu.com&quot; &lt;Tomasz.Wolski@ts.fujitsu.com&gt;</tt><br><tt>&gt; &nbsp;</tt><br><tt>&gt; Could you please tell me if the DMAPI implementation for GPFS is <br>&gt; multi-thread safe? Are there any limitation towards using multiple <br>&gt; threads within a single DM application process?</tt><br><tt>&gt; For example: DM events are processed by multiple threads, which call<br>&gt; dm* functions for manipulating file attributes \u2013 will there be any <br>&gt; problem when two threads try to access the same file at the same time?</tt><br><tt>&gt; &nbsp;</tt><br><tt>&gt; Is the libdmapi thread safe?</tt><br><tt>&gt; </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>