Thread control block & thread

Posted zzfx

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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的主要内容,如果未能解决你的问题,请参考以下文章

关于CUDA程序的grid和block size选择

Thread.State: WAITING (parking) vs BLOCKED at sun.misc.Unsafe.park() 有啥区别

并行计算cuda笔记

进程控制块(Process Control Block, PCB)

ORA-00742:Log read detects lost writein thread 1 sequence 1202 block 137840

ORA-00742:Log read detects lost writein thread 1 sequence 1202 block 137840