I have an indefinitely long list of identical tasks.
Tasks are taken from the list (in order) and added to a bucket which can contain 50 such tasks.
The tasks are taken from the bucket, to be completed, by multiple concurrent sub-processes. Each task may take a different amount of possibly-overlapping time to complete.
If my overall process is interrupted half-way through, how can I till where I "got up to"?
>>9065339
Number each task as you pull them out of the bucket starting with 1, and when you are interrupted, remember that last number.