← BYTES
Operating System·Starter·Ref: 14.1.6

What is a thread, and how does it differ from a process?

Have a question about this video? Mention reference 14.1.6 when you contact us.

a.A thread is identical to a process with a different name
b.A thread is a lightweight unit of execution within a process; multiple threads in the same process share that process's memory and resources, unlike separate processes which each have their own isolated memory space
c.A thread can only exist without a parent process
d.A process can contain other processes, but never threads
A process provides an isolated address space and its own set of resources; threads are 'lighter weight' units of execution that live inside a process and share that process's memory, open files, and other resources with each other -- making communication between threads of the same process (shared memory) much cheaper than communication between separate processes, but also meaning a bug in one thread (e.g., corrupting shared memory) can affect the whole process.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES1416#OperatingSystem