Checkpoint synchronization: Difference between revisions

m
Line 1,405:
Checkpoint is implemented as a task. It :
 
- Receives n "job doneallDone" events from n tasks into a "jobs" channel.
 
- Then sends $done event to all tasks so they can work again.
Line 1,413:
- Sleeps randomly between 1 and 1000 milliseconds, simulating its job.
 
- Then sends its number"jobDone" to the checkpoint using "jobs" channel.
 
- And waits for checkpoint return on its personal channel.
1,015

edits