Threading Flashcards
1
Q
When is a thread blocked?
A
A thread is deemed blocked when its execution is halted for some reason, such as when sleeping, waiting or joining.
2
Q
Which method explicitly uses a thread pool?
A
Task.Run
3
Q
What does maintaining good hygiene in the thread pool mean?
A
Ensuring that the pool is not over subscribed.
4
Q
What are the two operations that a thread can block on?
A
1) Compute or CPU bound
2) I/O bound
5
Q
What type of asynchronous function should you invoke for compute-bound operations?
A
Multi-threading
6
Q
What type of asynchronous function should you invoke for I/O-bound operations?
A
Callbacks