Service Request Block


A Service Request Block is a data structure of MVS/370 and successor versions of IBM mainframe operating systems employed mainly, but not exclusively, by the Start Input/Output interface.
An SRB may be considered, in the abstract, to be a highly optimized Task Control Block, one which has few, if any, associated resources other than access to the processor itself. All system resources which are utilized under an SRB must be accessed through the use of "branch entries", some of which are new entries to traditional system services which were formerly accessed exclusively using SVC instructions.
When employed by the Start Input/Output interface, an SRB is always paired with an Input/Output Supervisor Block.
When otherwise employed, an SRB facilitates inter-address-space communication in general, and inter-application communication in particular.
SRBs may also be employed for intra-address-space processes, where the highest possible performance is required, and in this case the necessary resources are first acquired under a TCB, before the SRBs are SCHEDULEd.
It is conceivable that an address space may have but one TCB but tens or hundreds or even thousands of SRBs, with the SRBs performing almost all of the work in the address space, and the TCB merely synchronizing the SRBs and responding to communications from the system operator.
For purposes of such synchronization, the TCB will usually issue a WAITR, SVC 1, specifying a list of Event Control Blocks, and each SRB will indicate its completion to the TCB by using a "branch entry" to the POST system service, and specifying the ECB which is associated with its SRB, and possibly a "message" to the TCB. The "message", should it be present, is often placed in the lowest 24 bits of the ECB, and which is otherwise unused. The highest eight bits are used by the system.
Disk device access and network device access is available to SRBs using the "improved control interval processing" feature of VSAM and the "fast path" feature of VTAM, respectively.

History

With the introduction of MVS/370 and successor systems, a whole new environment was introduced: the Service Request Block, which generally has a higher priority than any TCB, and, indeed, which itself has two distinct priorities: a Global SRB and a Local SRB ; and MVS's dispatcher must manage all of these with absolute consistency across as many as two processors and as many as sixteen processors. More than sixteen processors are available on some z/System models. z/System support for zIIP has dramatically increased the use of SRBs.
An SRB is a highly-optimized instance of a Process control block in these MVS/370 and successor systems. A TCB is a general-purpose instance of a Process control block in these OS/360 and successor systems.