Work Queue for building multithreaded applications