encyclopegia.org

Task Control Block

The Task Control Block (TCB) is a data structure which contains the state of a task in, e.g., OS/360 and successors on IBM System/360 architecture and successors.

The Task Control Block (TCB) is a data structure which contains the state of a task in, e.g., OS/360 and successors on IBM System/360 architecture and successors. ==The TCB in OS/360 and successors== In OS/360, OS/VS1, SVS, MVS/370, MVS/XA, MVS/ESA, OS/390 and z/OS, the TCB contains, among other data, non-dispatchability flags and the general and floating point registers for a task that is not currently assigned to a CPU. A TCB provides an anchor for a linked list of other, related request blocks (RBs); the top-linked RB for a TCB contains the Program status word (PSW) when the task is not assigned to a CPU. When the control program's dispatcher selects a TCB to be dispatched, the dispatcher loads registers from the TCB and loads the PSW from the top RB of the TCB, thereby dispatching the unit of work. ===Request Blocks=== OS/360 has the following types of request blocks Interruption Request Block An IRB is used to handle an asynchronous exit. Program Request Block A PRB represents a module invoked with an ATTACH macro, a LINK macro or a synchronous exit. System Interruption Request Block An SIRB is used to run I/O error recovery code. Supervisor Request Blocks An SVRB represents the execution of a Type 2, Type 3 or Type 4 SVC routine An RB contains several fields, among them an old PSW, old general registers, a PSW and a wait count. ===Dispatching=== The Dispatcher is a routine in the nucleus that selects the work to be dispatched. It selects the highest priority task that: Is not running on another CPU Does not have any non-dispatchability flags set Has a top RB with a zero wait count. The system maintains a pair of TCB pointers known as TCB old and TCB new. A TCB new pointer of zero causes the dispatcher to search for an eligible task. When the dispatcher finds an eligible task, it sets the old and new TCB pointers. loads the registers from the TCB and loads the PSW from the top RB. If the dispatcher fails to find eligible work, it enters an enabled wait. ==History== With the introduction of MVS/370 and successor systems, a whole new environment was introduced: the Service Request Block (SRB), which generally has a higher priority than any Task Control Block, and, indeed, which itself has two distinct priorities: a Global SRB (priority over all local address space SRBs and TCBs) and a Local SRB (priority over only the local address space TCBs); and MVS's dispatcher must manage all of these with absolute consistency across as many as two processors (MVS/370) and as many as sixteen processors (successor systems). ==See also== OS/360 and successors Thread control block ==Notes== ==References==

References

No reference rows published for this article.

Cite this article

MLA

"Task Control Block." encyclopegia.org, 2026, https://encyclopegia.org/wiki/task-control-block. Accessed 24 November 2026.

Chicago

"Task Control Block." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/task-control-block.

APA

encyclopegia.org. (2026). Task Control Block. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/task-control-block

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Take Over Control

stub · references available

Tohoku proportional representation block

stub · references available

Internet Engineering Task Force

stub · references available

automatic frequency control

stub · references available

access control

stub · references available

Media Control Interface

stub · references available

Need to Control

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1378082916 · 0.5 · snapshot enwiki-001378082916

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.