create and delete thread buffer queues