From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,85404311f8041f7a X-Google-Attributes: gidfa528,public X-Google-Thread: 1164f8,5747331edea7cbab X-Google-Attributes: gid1164f8,public X-Google-Thread: 102b75,85404311f8041f7a X-Google-Attributes: gid102b75,public X-Google-ArrivalTime: 2001-06-29 11:06:43 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!skynet.be!peer.news.eu-x.com!server2.netnews.ja.net!pegasus.csx.cam.ac.uk!nmm1 From: nmm1@cus.cam.ac.uk (Nick Maclaren) Newsgroups: comp.sys.dec,comp.unix.tru64,comp.arch Subject: Re: Compaq kills Alpha Date: 29 Jun 2001 18:06:41 GMT Organization: University of Cambridge, England Message-ID: <9hig3h$p18$1@pegasus.csx.cam.ac.uk> References: <3B37351D.5080503@cli.de> <5lithfuxa4.fsf@rum.cs.yale.edu> <9hi84g$i3d$1@pegasus.csx.cam.ac.uk> <5lels3uq9y.fsf@rum.cs.yale.edu> NNTP-Posting-Host: draco.cus.cam.ac.uk Xref: archiver1.google.com comp.sys.dec:4965 comp.unix.tru64:2821 comp.arch:12555 In article <5lels3uq9y.fsf@rum.cs.yale.edu>, Stefan Monnier wrote: >>>>>> "Nick" == Nick Maclaren writes: >> For example, assume one is running in kernel mode and has disabled >> all interrupts and the second is running in user mode and needs to >> take an interrupt. Without GREAT care, something then goes wrong. > >Huh? How is that different from the SMP case ? >If your kernel-only-no-interrupts threads can't deal with the other >thread being interrupted, then it should suspend that thread at the >same time that it turns off interrupts. >I don't see the difficulty from a comp.arch POV. The problem is that some interrupts apply to a well-defined thread (and hence are no trouble) and others are more global. Consider clock or I/O interrupts, for example. Or consider the following scenario: Thread A is handling a TLB miss or in-memory page fault, and will be uninterruptible for the best part of a microsecond. A high-priority fault comes in (say clock, I/O or machine check), so thread B takes it. The kernel code then needs to lock all threads while it handles the interrupt. Does it wait until thread A has finished, abort thread A, or does it interrupt the uninterruptible thread? In all cases, there are things that can go horribly wrong. We see this increasingly often at the software level in modern systems, where an architecturally single-threaded design of operating system has some threading bolted on and runs on top of a parallel hardware architecture. Stuck states, inconsistent results, and heaven alone knows what else. A bane of my life :-( Regards, Nick Maclaren, University of Cambridge Computing Service, New Museums Site, Pembroke Street, Cambridge CB2 3QG, England. Email: nmm1@cam.ac.uk Tel.: +44 1223 334761 Fax: +44 1223 334679