Thread Control Block (TCB) is a data structure in an operating system kernel that contains thread-specific information needed to manage the thread.[1] The TCB is "the manifestation of a thread in an operating system."

Each thread has a thread control block. An operating system keeps track of the thread control blocks in kernel memory.[2]

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: Points to the current program instruction of the thread
  • 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.

See also

edit

References

edit
  1. ^ "Thread Control Block in Operating System". GeeksforGeeks. 2019-11-26. Retrieved 2023-09-04.
  2. ^ "CS162 - Fall 2014 #7 - Kernel Threads". inst.eecs.berkeley.edu. Archived from the original on 2023-12-07. Retrieved 2023-12-07.

📚 Artikel Terkait di Wikipedia

Control block

process control block, thread control block, Task Control Block, or Service Request Blocks. Control blocks, which may be called called Unit Control Blocks, hold

Thread block (CUDA programming)

threads are grouped into thread blocks. The number of threads in a thread block was formerly limited by the architecture to a total of 512 threads per

Process control block

process stack. Thread control block (TCB) Process Environment Block (PEB) Program segment prefix (PSP) Data segment Task Control Block for the equivalent

Task Control Block

processors (successor systems). OS/360 and successors Thread control block Roughly analogous to a thread in UNIX-like operating systems. An asynchronous routine

Operating system

context switch a running thread is suspended, its state is saved into the thread control block and stack, and the state of the new thread is loaded in. Historically

Thread (computing)

a cooperatively-multitasked thread blocks by waiting on a resource or if it starves other threads by not yielding control of execution during intensive

Threading Building Blocks

oneAPI Threading Building Blocks (oneTBB; formerly Threading Building Blocks or TBB) is a C++ template library developed by Intel for parallel programming

Threaded code

In computer science, threaded code is a programming technique where the code has a form that essentially consists entirely of calls to subroutines. It