home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.aix
- Path: sparky!uunet!europa.asd.contel.com!emory!swrinde!zaphod.mps.ohio-state.edu!malgudi.oar.net!news.ans.net!newsgate.watson.ibm.com!yktnews!admin!minnie!gerth
- From: gerth@watson.ibm.com (John Gerth)
- Subject: Re: swap instruction in assembler?
- Sender: news@watson.ibm.com (NNTP News Poster)
- Message-ID: <1992Nov07.030846.47547@watson.ibm.com>
- Date: Sat, 07 Nov 1992 03:08:46 GMT
- Disclaimer: This posting represents the poster's views, not necessarily those of IBM
- References: <471@bertha.HyperDesk.com> <1992Nov06.014521.65797@watson.ibm.com> <30136@nntp_server.ems.cdc.com>
- Nntp-Posting-Host: minnie.watson.ibm.com
- Organization: IBM T.J. Watson Research Center
- Lines: 9
-
- The cs() routine "Compare and Swap" is not a traditional or POSIX
- routine and so isn't portable. I didn't feel too bad about recommending
- it because the question in the subject mentioned "assembler" and so
- seemed to indicate portability was not a question. There's nothing
- particularly hard about cs() and it could be built out of semaphores
- in a straightforward manner, but you're correct that it's an AIXism.
-
- --
- John Gerth gerth@watson.ibm.com (914) 784-7639
-