Passing tokens between threads

Tony Guan guanxiaohua at
Tue May 4 09:03:52 PDT 2010

Dear all,

In my current project, I need to be able to pass tokens between
certain threads inside VM. While it's easy when Thread A is directly
calling the Thread B's start().

But usually, the thread B is not directly created and started by
thread A, for example, thread pooling. In this case, if I need to pass
a token from thread A to thread B(which is triggered by A), I guess I
will need to monitor the object that B is waiting on.

While I am still pondering over this, is there any other advice?

Thanks for listening!

Tony (Xiaohua Guan)

More information about the hotspot-runtime-dev mailing list