[concurrency-interest] Concurrency Architecture

Norman Elton normelton at gmail.com
Sun Jun 14 13:02:41 EDT 2009

Let's say one thread already holds the semaphore. That one is off
looking for a new server. If a new thread comes along, he would
normally block until the semaphore is available. Once it's available,
he would go ahead and look for a new server. In my situation, that
second server needs to realize that another thread has already taken
care of the dirty work.

I'm looking at tryAcquire, since it seems that it will behave
differently if someone else already has the semaphore. That might lead


On Sun, Jun 14, 2009 at 12:58 PM, Carfield Yim<carfield at carfield.com.hk> wrote:
> Can we do that with
> http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/Semaphore.html
> ?? The first thread hold the semaphore and the other wait for the result

More information about the Concurrency-interest mailing list