[concurrency-interest] a question regarding LockSupport

David Holmes davidcholmes at aapt.net.au
Thu Feb 28 06:46:30 EST 2013

No the permit is per-thread and maintained in the VM.

  -----Original Message-----
  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...
URL: <http://cs.oswego.edu/pipermail/concurrency-interest/attachments/20130228/cf7d3bed/attachment.html>

More information about the Concurrency-interest mailing list