24.12.2013 Views

TOPS-10 Monitor Calls Manual Volume 2 AA-K039D ... - Trailing-Edge

TOPS-10 Monitor Calls Manual Volume 2 AA-K039D ... - Trailing-Edge

TOPS-10 Monitor Calls Manual Volume 2 AA-K039D ... - Trailing-Edge

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ENQ. [CALLI 151]<br />

Or, if the ASCIZ string is stored in 7-bit bytes,<br />

starting at the first byte of the location being<br />

referenced, the pointer can take the form:<br />

XWD<br />

-1, address<br />

The ASCIZ string at address can be up to 30<br />

(decimal) words. The maximum string length for<br />

your system is stored in %EQMSS in GETTAB table<br />

.GTENQ.<br />

Cooperating programs (those requesting the same<br />

resources) must specify exactly the same user code<br />

or ASCIZ string.<br />

2 .ENQPS<br />

Specifies<br />

resource,<br />

resource.<br />

O.<br />

either a pool number for a pooled<br />

or a sharer group number for a sharable<br />

This word is optional and defaults to<br />

For a pooled resource, the word contains the<br />

pool-size in the left half and the number of<br />

resources requested from the pool in the right<br />

ha~f. For a sharable resource, the left half is<br />

zero, and the right half contains the sharer-group<br />

number. Thus, a resource cannot be pooled and<br />

also be accessible to a sharer group.<br />

A pooled resource is defined by the first<br />

requestor of the resource. By specifying the<br />

number of resources in the pool, the requestor is<br />

defining the number of "copies" of the resource to<br />

be made available. Each copy of the resource can<br />

be requested for exclusive access by specifying<br />

the same resource identifier in word .ENQBP and<br />

the same pool-size in word .ENQPS. The requestor<br />

must also specify, in the right half of .ENQPS<br />

(EQ.PPR), the number of copies of the resource to<br />

lock.<br />

If the left half of .ENQPS (EQ.PPS) is 0, the<br />

right half (EQ.PPR) specifies the sharer-group<br />

number, thus defining a group of jobs that can<br />

simultaneously share the resource. Any program<br />

that sets the flag EQ.FSR and specifies the same<br />

resource and the same sharer group number will be<br />

granted its request. Therefore, when you share<br />

the ownership of a resource, only other jobs in<br />

the same sharer group are allowed ownership of the<br />

resource. The sharer group number defaults to O.<br />

Therefore, if the first requestor specifies a<br />

sharable resource but omits the sharer group<br />

number, all subsequent sharable requests for the<br />

resource that also omit the sharer group number,<br />

or that set it to 0, will be granted immediately.<br />

22-114

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!