I *think*

         TM    MYECB,X'40'
         JO    NOWAIT
         WAIT  MYECB
NOWAIT   EQU   *

is foolproof, with no need for any sort of "interlock."

Charles

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Jerry Callen
Sent: Thursday, June 02, 2016 6:54 AM
To: [email protected]
Subject: Re: SUSPEND/RESUME is slower than WAIT/POST. PAUSE/RELEASE is slower 
than both.

Edward Jaffe wrote:

> And, in the absence of contention, WAIT/POST in 
> professionally-developed software becomes orders of magnitude faster 
> since everyone knows to skip the WAIT if the post bit is on and to 
> attempt a "quick" POST of the ECB (using CS) if the wait bit is off.

I understand the "quick POST" trick w/CS, but bypassing WAIT? I can see how 
that would work for something like waiting on I/O completion, but for trading 
control back and forth, I think it requires (for example) an auxiliary counter 
(and CDS to update both the ECB and the counter simultaneously). Am I missing 
something?

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to