码迷,mamicode.com
首页 > 其他好文 > 详细

Thread control block & thread

时间:2017-05-02 19:39:55      阅读:229      评论:0      收藏:0      [点我收藏+]

标签:block   pcb   ati   ssi   sso   running   point   inf   tin   

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

标签:block   pcb   ati   ssi   sso   running   point   inf   tin   

原文地址:http://www.cnblogs.com/feng9exe/p/6797690.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!