首页 > 代码库 > Thread control block & thread
Thread control block & thread
https://en.wikipedia.org/wiki/Thread_control_block
Thread Control Block (TCB) is a data structure in the operating system kernel which contains thread-specific information needed to manage it. The TCB is "the manifestation of a thread in an operating system".
An example of information contained within a TCB is:
- Thread Identifier:Unique id (tid) is assigned to every new thread
- Stack pointer: Points to thread‘s stack in the process
- Program counter
- State of the thread (running, ready, waiting, start, done)
- Thread‘s register values
- Pointer to the Process control block (PCB) of the process that the thread lives on
The Thread Control Block acts as a library of information about the threads in a system. Specific information is stored in the thread control block highlighting important information about each process.
Thread control block & thread
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。