Does memory mapped file support concurrent get/put?
<p>My application requires concurrent access to a data file using memory mapping. My goal is to make it scalable in a shared memory system. After studied the source code of memory mapped file library implementation, I cannot figure out:</p>

<ul>
<li>Is it legal to read from a <code>MappedByteBuffer</code> in multiple threads? Does <code>get</code> block other <code>get</code> at OS (*nix) level?</li>
<li>If a thread <code>put</code> into a <code>MappedByteBuffer</code>, is the content immediately visible to another thread calling <code>get</code>?</li>
</ul>

<p>Thank you.</p>

<p>To clarify a point: The threads are using a single instance of <code>MappedByteBuffer</code>, not multiple instances.</p>
