Do not reference pthread objects in queue and process modules
Make queue FIFO