Why do we need threads?

Why do we need threads?
Answer
Threads are very useful in modern programming whenever a process has multiple tasks to perform independently of the others. This is particularly true when one of the tasks may block, and it is desired to allow the other tasks to proceed without blocking.
 

Tìm kiếm

Back
Top