in reply to Re^2: Locking/unlocking program execution using a queuein thread Locking/unlocking program execution using a queue