On Tue, 22 Jan 2008 12:37:34 -0500, Gerhard Postpischil wrote: >Paul Gilmartin wrote: >> (I did say "clear the ECB" before POSTing the other task, didn't I?) >> That's "should", not "must". And why not? It can't really matter, >> because even if the code is the minimal: >> >> WAIT >> L R1,ECB Preserve condition code >> XC ECB,ECB Clear ECB for next cycle >> >> ... there's still the possibility that the waiter will lose control >> and some other task be dispatched between the WAIT and the XC. Is >> there any hazard in another task's (or the same task's) being able >> to observe the ECB with the POST bit set? If the concern is that >> the path from WAIT to XC may be so long that the waiter misses a POST >> by the other task during that interval, the design is wrong. The >> coder mustn't (not "shouldn't") count on winning that race. > >These days it's a non-issue; instead of XC use CS. > And if the CS fails, it means that some other process has been unexpectedly meddling with the ECB. What to do then? ABEND with a nasty message?
(Perhaps I need more details of the design you envision.) -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

