human
I have a question about multi-threading. How do you know which thread to use?
assistant
That’s a good question. There are a few different ways to choose which thread to use. One way is to use a priority queue. Another way is to use a priority queue with a FIFO ordering. A third way is to use a priority queue with a LIFO ordering.