📜  什么是 os 中的线程 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:23.578000             🧑  作者: Mango

代码示例1
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.