Thanks to off-list help, I got my answer.  

For the archives: use semaphores.

Reply via email to