THE WAIT/POST ROUTINES To suspend its execution, the requesting task calls DMTWAT, which
inspects the synchronization locksRSCS uses to synchronize task
execution. Cempletion of a service is signaled byaeans of a synch
lock,which is set (or "posted") by DMTPST. SYNCHRONIZATION LOCKS Synchronization locks (or "synch locks") are fullwords contained in task
save areas or centrol tables (such as TAREA orIOTAELE). Synch locks
are also found in control areas in function selector routines sucb asREXCYCLE in medule DMTREX. The syncb lock must be set to zero before the request for services is
made.Setting the synch lock to zero prepares it for processing ty the WAIT routine.
The first byte of the fullword may contain either a zero or a "post code." If the first byte is zero, the task is nondispatchable, tecause the requested service has not yet been performed. A post code is a cooe which sets tc one any bit in the first byte of the synch lock. D!TPST sets such a bit to specify that a requested service has been completed.
The requesting task, that is, the caller oftMTWAT, may specify tbe address of a single synch lock (as in the case of a GIVE Tatle or an IOTABLE) or the address of a list of synch locks (as in the case cf REXCYCLE), one of which must be posted by before dispatching cf
the requesting task can resume. Figure 8shows the contents of Register
1on a call. Rl Synch Lock r-----------, r -, 1 A (Sy ncb Leck) 1--------> I I OOOCOO 1 L-- _______ --' L
--OR -- Rl r r-- ---, ,--------.1 1 1 A (List Address) 1----> 1 A (Synch Lock) 1--' L-- -' 1 I IA(Synch Lock) 1--------- I 1 / /
/ /1 , Synch Lock I >1 0 Synch Lock
r>1 0 IA (Synch Lock) 1-, Synch Lock
L1 r , '-- __ >1 0 1 Figure 8. InFut to the DMTWAT Routine
3-22IBM VM/370: System Logic and Problem Determination--Volume 3
inspects the synchronization locks
execution. Cempletion of a service is signaled by
lock,
save areas or centrol tables (such as TAREA or
are also found in control areas in function selector routines sucb as
made.
The first byte of the full
The requesting task, that is, the caller of
the requesting task can resume. Figure 8
1
--
/ /
r
L
3-22