example of a thread in os
Example: what is a thread in os
Process is a program in execution.
A thread is a segment of the process.
It is a basic unit of CPU utilization, consisting of a program counter,
a stack, and a set of registers, an ID.
A thread is also called a light-weight process.