Article View: comp.lang.asm370
Article #240Re: More pet ALC tricks...
From: "C.E. Thompson"
Date: Tue, 14 Nov 1989 22:16
Date: Tue, 14 Nov 1989 22:16
16 lines
1306 bytes
1306 bytes
In article <8911131336.AA27002@brazos.rice.edu>,P85025@BARILVM.BITNET (Doron
Shikmoni) writes
>Note, that CS/CDS/TS should be used only if you really need to serialize;
>if you just want to compare-and-then-swap, and think of using these since
>"It's one instruction", in a simple "application" program, don't; these
>instructions are expensive.
Well, they are not as cheap as L and C, say, but you shouldn't be paranoid
about using them, either. On CPUs with write-in caches, the overheads are
not that bad. It makes sense to use CS/CDS to synchronise between a program
and an asynchronous exit, for example, using them for their non-divisibility
rather than their MP-storage-consistency.
Chris Thompson
JANET: cet1@uk.ac.cam.phx
Internet: cet1%phx.cam.ac.uk@nsfnet-relay.ac.uk
Technical Details
Message-ID:
<8911151823.AA25006@brazos.rice.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!ucsd!ucbvax!UUNET.UU.NET!mcsun!ukc!cam-cl!cet1Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!ucsd!ucbvax!UUNET.UU.NET!mcsun!ukc!cam-cl!cet1
From: mcsun!ukc!cam-cl!cet1@UUNET.UU.NET ("C.E. Thompson")
Newsgroups: comp.lang.asm370
Subject: Re: More pet ALC tricks...
Message-ID: <8911151823.AA25006@brazos.rice.edu>
Date: 14 Nov 89 22:16:17 GMT
Sender: daemon@ucbvax.BERKELEY.EDU
Reply-To: IBM 370 Assembly Programming Discussion List <ASM370%UCF1VM.BITNET@ricevm1.rice.edu>
Distribution: inet
Organization: The Internet
Lines: 16