[otj-users] Teams, Threads and Within: how to deal with them;

Henry Sudhof hsudhof at cs.tu-berlin.de
Fri Oct 14 18:21:07 CEST 2005


Hi Carsten,
thanks for your reply. And thank you for summarizing my rather bloated 
message.
The idea of thread-local team activation sounds  indeed like something 
that would greatly improve the ease of use in concurrent applications.

At the moment there seems to be  no clean solution for the problem (and 
that's without even considering performance)  of  dynamic teams in 
concurrent programs:
unsynchronized "within" blocks  might lead to the team getting "struck" 
in a state;
synchronizing the within blocks removes that issue, at the price that 
there might be side-effects. Said side-effects can cause the team to 
(temporarily) re-activate after leaving the synchronized block, even 
when no other thread entered a "within", called (de-)activate, called a 
method of an externalized role or called a team-level method.


Thanks :D,
Henry



More information about the otj-users mailing list