📜  操作系统中的线程 - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:51.704000             🧑  作者: Mango

代码示例1
A thread is a flow of execution through the process code, 
with its own program counter that keeps track of which instruction to execute next, 
system registers which hold its current working variables,
and a stack which contains the execution history. 
A thread is also called a lightweight process.