[concurrency-interest] Request for feedback -- Bill/Brian/Cliff JavaOne talk

Peter Veentjer alarmnummer at gmail.com
Tue Apr 10 08:28:38 EDT 2007


It is part of a concurrency library I'm working on and planning to
release (the first version still needs a lot of work).

http://prometheus.codehaus.org

but I haven't released anything. If you want I can send the current
version to you.

On 4/10/07, Oliver Zeigermann <oliver at zeigermann.de> wrote:
> That's pretty cool. Any place where I can get the source?
>
> Cheers
>
> Oliver
>
> 2007/4/10, Peter Veentjer <alarmnummer at gmail.com>:
> > > I can understand them, and see where they might be useful for
> > > somethings. The nice thing about the tick counter
> > > in MultithreadedTestCase is that it works very well for the case
> > > where you expect a thread to block and you want
> > > to verify that it does block.
> >
> > I have created threads and runnable's that can be asked for the state
> > they are in, and how they have exited:
> >
> > example usage:
> >
> > BlockingThread waitThread = scheduleWait(somelock,somecondition);
> > sleepMs(SMALL_DELAY);
> > waitThread.assertIsWaiting();
> >
> > Thread signalThread = scheduleNotify(somelock,somecondition);
> > joinAll(signalThread,waitThread);
> > waitThread.assertIsFinished();
> >
> > And the joinAll method joins on thread with a timeout, so a unittest
> > won't stall indefinitely.
> >
>


More information about the Concurrency-interest mailing list