Content deleted Content added
No edit summary |
No edit summary |
||
(17 intermediate revisions by 11 users not shown) | |||
Line 1:
{{More citations needed|date=September 2023}}
'''Thread Control Block''' ('''TCB''') is a [[data structure]] in
Each thread has a thread control block. An operating system keeps track of the thread control blocks in kernel memory.<ref>{{Cite web |title=CS162 - Fall 2014 #7 - Kernel Threads|url=https://inst.eecs.berkeley.edu/~cs162/fa14// |access-date=2023-12-07 |website=inst.eecs.berkeley.edu|archive-url=https://web.archive.org/web/20231207231258/https://inst.eecs.berkeley.edu/~cs162/fa14//|archive-date=2023-12-07|url-status=unfit}}</ref>
▲'''Thread Control Block''' (TCB) is a [[data structure]] in the [[operating system kernel]] which contains [[Thread (computing)|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]]: Points to the current program instruction of the thread
* State of the thread (running, ready, waiting, start, done)
* Thread's [[Processor register|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 [[Thread (computing)|threads]] in a system. Specific information is stored in the thread control block highlighting important information about each process.
Line 16 ⟶ 18:
* [[Parallel Thread Execution]]
* [[Process control block]] (PCB)
* [[Thread Environment Block]] (TEB)
== References ==
{{Reflist}}
[[Category:Operating system kernels]]
|