[concurrency-interest] Concurrent stack

Dimitris Andreou jim.andreou at gmail.com
Thu Jan 22 17:34:14 EST 2009


Dah, this is wrong, since that would include waiting for the opposite 
action. Ignore this, thanks.

O/H Jim Andreou έγραψε:
> It's already there: SynchronousQueue.
>
> put() for push
> take() for pop
>
> Ok, this is cheating, but without synchronization (like in Stack, i.e. 
> sequential pushs and pops), you have no defined order to expect anyway.
>
> Dimitris
>
> 2009/1/23 Guy Korland <gkorland at gmail.com <mailto:gkorland at gmail.com>>
>
>     Hi,
>
>     Are there any plans to add the concurrent package a concurrent stack?
>     The current implementation exists as part of the JRE is a
>     synchronized.
>     While there're few well known algorithms for non-blocking stack.
>
>     -- 
>     Guy Korland
>
>     _______________________________________________
>     Concurrency-interest mailing list
>     Concurrency-interest at cs.oswego.edu
>     <mailto:Concurrency-interest at cs.oswego.edu>
>     http://cs.oswego.edu/mailman/listinfo/concurrency-interest
>
>



More information about the Concurrency-interest mailing list