[concurrency-interest] a question regarding LockSupport
davidcholmes at aapt.net.au
Thu Feb 28 06:46:30 EST 2013
No the permit is per-thread and maintained in the VM.
From: concurrency-interest-bounces at cs.oswego.edu
[mailto:concurrency-interest-bounces at cs.oswego.edu]On Behalf Of Yechiel
Sent: Thursday, 28 February 2013 9:42 PM
To: Concurrency-interest at cs.oswego.edu
Subject: [concurrency-interest] a question regarding LockSupport
All its methods are static. Also, UNSAFE which is used by it is a static
instance. So- when PARK() commands are issued by different threads within
different implementations of locks which use LockSupport , or several
instances of locks (like the FifoMutex in the code example of LockSupport) -
are they all competing for a single Park() permit ?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Concurrency-interest