lock  that  is  lower  in  the  locking  hierarchy.  For  example  if  a  processor  holds  the  free  
storage lock, the processor cannot perform input/output.On   the  other  hand,  if  a  
processor holds theI/O   lock,  the  processor  can  obtain  free  storage.  
Figure 31 shows the hierarchy of locks under VM/SP where the global system lock
is the highest lock. The real storage management lock and theI/O   lock  are  on  the  
same level. There are no situations which require simultaneous ownership of theI/O   lock  and  the  real  storage  management  lock.  If  such  a  need  arises,  the  system  
will define a hierarchy between these locks.
GlobalSystQm   Lock  
Real Storage Management LockI   I/O   Lock  
Note:
V
Run List LockI   V  
Timer RequestQueue   Lock  I   V  
Dispatcher Stack lockRDEVBLOK   Lock  I   V  Private   locks  
Free Storage lock
Spin Locks
TheVMBLOK   is  a  defer  lock  and  is  not  shown  in  this  h;erarchy  Figure   31.  Hierarchy  of  VM/SP   Locks  
Types of Locks
Locking Structure
There are two basic types of locks:
Defer locks
Spin locks
If a function requests a defer lock and it is not available, control is returned to the
caller with a condition code that indicates that the lock is not available. However,
if a function-requests   a  spin  lock  and  it  is  not  available,  the  lock  manager  loops  
until the lock becomes available.
To provide system integrity, VM/SP attached processor and multiprocessorsup:   port  is  designed  around  one  global  lock,  a  VMBLOK   local  lock,  and  several  system  
local locks for specifically identified queues or modules.
Global SystemLock:   Much  of  CP  runs  under  the  global  system  lock,  which  is  a  
defer lock. For example, all command processing requires the global system lock.
Also, all code executed via anIOBLOK,   TRQBLOK,   or  CPEXBLOK   is  protected  
CP in Attached Processor and Multiprocessor Modes 215
storage lock, the processor cannot perform input/output.
processor holds the
Figure 31 shows the hierarchy of locks under VM/SP where the global system lock
is the highest lock. The real storage management lock and the
same level. There are no situations which require simultaneous ownership of the
will define a hierarchy between these locks.
Global
Real Storage Management Lock
Note:
V
Run List Lock
Timer Request
Dispatcher Stack lock
Free Storage lock
Spin Locks
The
Types of Locks
Locking Structure
There are two basic types of locks:
Defer locks
Spin locks
If a function requests a defer lock and it is not available, control is returned to the
caller with a condition code that indicates that the lock is not available. However,
if a function
until the lock becomes available.
To provide system integrity, VM/SP attached processor and multiprocessor
local locks for specifically identified queues or modules.
Global System
defer lock. For example, all command processing requires the global system lock.
Also, all code executed via an
CP in Attached Processor and Multiprocessor Modes 215
 
             
            
































































































































































































































































































































































































































































































































































































































