1.

What is thread in OS?

Answer»

Thread is a path of execution that is composed of a program counter, thread ID, stack, and set of registers within the PROCESS. It is a basic unit of CPU utilization that makes COMMUNICATION more effective and efficient, enables utilization of multiprocessor architectures to a greater scale and greater efficiency, and reduces the TIME required in context switching. It simply provides a way to improve and increase the performance of applications through PARALLELISM. Threads are sometimes called lightweight processes because they have their own stack but can access shared data. 

Multiple threads running in a process share: Address space, Heap, Static data, Code segments, File descriptors, Global variables, Child processes, Pending alarms, Signals, and signal handlers. 

Each thread has its own: Program counter, Registers, Stack, and State.



Discussion

No Comment Found