Frequently Asked Questions on Thread in Operating System
What is thread state in operating system?
There are four different states of a thread.
- new
- runnable
- blocked
- terminated
Why thread is better than process?
Threads require fewer resources whereas process require more resources. that is why thread is better than process.
Why is multithreading faster?
While the computer system’s processor only carries out one instruction at a time when multithreading is used, various threads from several applications are carried out so quickly that it appears as though the programs are running simultaneously.
Thread in Operating System
A thread is a single sequence stream within a process. Threads are also called lightweight processes as they possess some of the properties of processes. Each thread belongs to exactly one process. In an operating system that supports multithreading, the process can consist of many threads. But threads can be effective only if the CPU is more than 1 otherwise two threads have to context switch for that single CPU.
Contact Us