Posts

Showing posts with the label Process




Difference Between a Thread and a Process Explain With Example

Image
A thread is a simple path of execution within a process. Sign in to vote. Operating System Multi Threading A process may contain one or more threads but a thread cannot contain a process. . A thread is a lightweight process that can be managed independently by a scheduler. Is a program in execution. Process can have multiple threads but thread is the smallest unit which can execute concurrently with other threads. A thread is a light-weight process and needs only fewer resources. Thread is a part of process. It consumes less resources of the system. Cooperative Multitasking vs Preemptive Multitasking. Process do not depend on each other whereas threads are not independent as they share address space. Opening a new browser say Chrome etc is an example of creating a process. At this point a new process will start to execute. Every process has at last one thread the main thread that exists so...