Which thread is blocked during synchronized access of a map?
<p>I have two threads that need to access a HashMap. I'm using the <code>synchronized</code> keyword and <code>Collections.synchronizedMap()</code> to make sure that only one thread can use it at once.</p>

<p>It is imperative that one of these threads never sleeps, but the other can. Should I use <code>synchronized</code> and <code>Collections.synchronizedMap()</code> in the thread that can sleep, the one that can't, or both?</p>
