🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.asm370
Article #241

Re: More pet ALC tricks...

#241
From: C.E. Thompson
Date: Tue, 14 Nov 1989 22:16
15 lines
1283 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: <1654@gannet.cl.cam.ac.uk>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!att!rutgers!ucsd!usc!cs.utexas.edu!wuarchive!wugate!uunet!mcsun!ukc!cam-cl!cet1
References: <8911131336.AA27002@brazos.rice.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!att!rutgers!ucsd!usc!cs.utexas.edu!wuarchive!wugate!uunet!mcsun!ukc!cam-cl!cet1
From: cet1@cl.cam.ac.uk (C.E. Thompson)
Newsgroups: comp.lang.asm370
Subject: Re: More pet ALC tricks...
Message-ID: <1654@gannet.cl.cam.ac.uk>
Date: 14 Nov 89 22:16:17 GMT
References: <8911131336.AA27002@brazos.rice.edu>
Sender: news@cl.cam.ac.uk
Reply-To: cet1@cl.cam.ac.uk (C.E. Thompson)
Distribution: inet
Organization: U of Cambridge Comp Lab, UK
Lines: 15