shmem's right. I omitted the method enqueue, now corrected.
In reply to Re^10: Multithreading, how to? by BrowserUk in thread Multithreading, how to? by iSina