create thread-and-queue