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.[1] 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 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

References

  1. "Thread Control Block in Operating System". GeeksforGeeks. 2019-11-26. Retrieved 2023-09-04.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.