[drmaa-wg] Simultaneous waits on the same job id?

Andreas.Haas at Sun.COM Andreas.Haas at Sun.COM
Mon Jun 26 03:36:02 CDT 2006


On Fri, 23 Jun 2006, Ed Baskerville wrote:

> OK, I'll do that. But one more question: how do these issues apply to 
> synchronize? Consider the following sequence:
>
> thread 1: wait(job id 5)
> thread 2: synchronize(job ids 5,6,7)
> [job id 5 finishes]
> ¿thread 2 synchronize call fails?
> [job id 7 finishes]
> [job id 6 finishes]
> ¿thread 2 synchronize call succeeds?
>
> Should synchronize fail with INVALID_JOB as soon as any of the ids it's 
> waiting on are reaped? Or should it eventually succeed?

There is no reason for synchronize to fail, as long as none of the 
jobs was reaped when synchronize() gets issued.

Andreas


More information about the drmaa-wg mailing list