InterviewSolution
Saved Bookmarks
| 1. |
State a few benefits and a few drawbacks of using threads with respect to Operating Systems? |
|
Answer» A thread is a path of execution within a process. A process can have several threads. Within a process, it's a separate control flow. It consists of a CONTEXT and a series of instructions that must be followed. Threads in the same process use shared memory space. Because threads aren't truly independent of one another, they share their CODE, data, and OS resources with other threads (like open FILES and signals). The following are the main benefits of using threads in Operating Systems:
The following are the most significant drawbacks of using threads:
|
|