On Sun, 6 May 2012 09:27:22 -0700, Charles Mills wrote: > >I am kicking the ENQ idea around. ENQ is certainly promising. There are some >interlock issues with re-establishing the exclusive ENQ after relinquishing >it, and what do the intended waiting tasks do in the meantime, but it has >promise. > Two tasks, A and B alternately ENQing EXC. (Synchronize with WAIT/POST. B issues ENQ EXC, then A DEQs. All tasks with ENQ SHR are now free to run. There will always be at least one, sometimes two ENQ EXC outstanding.
It's not clear what your objective is -- apparentlly you have some recurrent event and an indeterminate number of tasks each of which must execute exactly once for each occurrence of that event, Then my scheme above fails if any of the worker tasks runs longer than the interarrival time of two of the controlling events. -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN

