Question: When using a thread pool what happens to a given thread after it finishes its task?
- The thread is destroyed and memory is freed up.
- The thread runs in loop until the next assignment.
- The thread goes inactive in the background and waits for garbage collection.
- The thread returns to the pool for reuse.
Answer: The correct answer of the above question is Option D:The thread returns to the pool for reuse.