Binyamin Dissen wrote:
I was going to use PLO to do a compare/swap/store, with the compare/swap on
the count and a store into the chain (possibly into the head pointer - thus
both words in the doubleword would be accessed as single words). Obviously I
would get bad results if the load of the chain header/count did not get a
consistent result.

Block concurrency rules state that LM and STM against a doubleword will always see an all-or-nothing result. But, this doesn't obviate the need for PLO in the circumstances in which it's needed -- e.g., to traverse or update a linked-list.

--
Edward E Jaffe
Phoenix Software International, Inc
5200 W Century Blvd, Suite 800
Los Angeles, CA 90045
310-338-0400 x318
[EMAIL PROTECTED]
http://www.phoenixsoftware.com/

----------------------------------------------------------------------
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

Reply via email to