InterviewSolution
Saved Bookmarks
| 1. |
What are the advantages and the disadvantages of using threads in context to OS? |
|
Answer» Within a process, a thread is a path of execution. Multiple threads can exist in a process. It's an independent control flow within a process. It is made up of a context and a set of instructions to be carried out. Shared memory space is used by threads in the same process. Threads aren't really independent of one another, hence they share their code section, data section, and OS resources with other threads (like open files and signals). The following are the KEY benefits of EMPLOYING threads:
The following are the main drawbacks of employing threads:
|
|