From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,5747331edea7cbab X-Google-Attributes: gid1164f8,public X-Google-Thread: 102b75,85404311f8041f7a X-Google-Attributes: gid102b75,public X-Google-ArrivalTime: 2001-07-12 09:05:21 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!crtntx1-snh1.gtei.net!lsanca1-snf1!news.gtei.net!newsfeed2.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread2.prod.itd.earthlink.net.POSTED!not-for-mail From: "mulp" Newsgroups: comp.sys.dec,comp.arch References: <9hsnb2$jd7$1@bob.news.rcn.net> <994693157.444120@haldjas.folklore.ee> <9ieom7$7hi$5@bob.news.rcn.net> <3B4B24A5.5E40E2F3@mchpDOTsiemens.de> <9ifis7$v3c$1@news.btv.ibm.com> Subject: Re: CPU failure in an SMP system (was Re: Compaq kills Alpha) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: Date: Thu, 12 Jul 2001 16:05:28 GMT NNTP-Posting-Host: 4.54.155.170 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.prod.itd.earthlink.net 994953928 4.54.155.170 (Thu, 12 Jul 2001 09:05:28 PDT) NNTP-Posting-Date: Thu, 12 Jul 2001 09:05:28 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net X-Received-Date: Thu, 12 Jul 2001 09:02:57 PDT (newsmaster1.prod.itd.earthlink.net) Xref: archiver1.google.com comp.sys.dec:5670 comp.arch:13772 "hack" wrote in message news:9ifis7$v3c$1@news.btv.ibm.com... > In article <3B4B24A5.5E40E2F3@mchpDOTsiemens.de>, > Konrad Schwarz wrote: > >[snip] > >3. Nobody (except Intel) has atomic read/modify/write instructions. > > Ever heard of Test-and-Set (S/360)? Compare-and-Swap (S/370 etc.) PLO > (Perform Locked Operation, S/390)? VAX also has atomic list-update operations > that are in the spirit of PLO (synchronisation using microcode locks invisible > to the programmer); TS and CS use hardware synchronisation. Perhaps the intent was to refer to the ability to modify one byte in a word in thread 1 while thread 2 modifies a second byte in the same work on a different CPU. Windows apps are often multithreaded and often have data structures with adjacent byte fields that are modified by different threads without any interlocking. Because there is no practical way for a compiler to determine whether a second of code might be executed in a threaded environment, the Alpha compilers had to blindly generate atomic read/modify/write sequences because there was no support in the hardware. Note that the ability to modify a two bytes in a word on two different CPUs doesn't have anything to do with data visibility. The CPU/memory system has to correctly update the bytes, but there is nothing that says that if I write byte 1 after you wrote byte 0, that I will be able to see the value you wrote into byte 0, even when the granuality of the memory system is 64 bytes.