From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fdd80,5cdb0c1dbaceb85b X-Google-NewGroupId: yes X-Google-Thread: 1164f8,5cdb0c1dbaceb85b X-Google-NewGroupId: yes X-Google-Attributes: gide311f70d09,gidd180ab3bd8,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.196.130 with SMTP id im2mr2504106pbc.3.1326983391335; Thu, 19 Jan 2012 06:29:51 -0800 (PST) MIME-Version: 1.0 Path: lh20ni200058pbb.0!nntp.google.com!news2.google.com!news1.google.com!news.glorb.com!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail From: koehler@eisner.nospam.encompasserve.org (Bob Koehler) Newsgroups: alt.sys.pdp11,vmsnet.pdp-11,comp.sys.dec Subject: Re: PDP11 Values from MFPT Message-ID: <+W4cXjoDG$OR@eisner.encompasserve.org> Date: 19 Jan 2012 08:29:48 -0600 References: <4f12e49d$0$295$14726298@news.sunsite.dk> <9nnv8qFi76U8@mid.individual.net> Followup-To: alt.sys.pdp11,vmsnet.pdp-11,comp.sys.dec Organization: Encompasserve NNTP-Posting-Host: 67.53.90.116 X-Trace: news.sunsite.dk DXC=][BPYD60?G^5LoVIWDNeH\YSB=nbEKnk[0Y8_T=Oc\`RT1ogI\PgSUG^[HNa7Z\F_ X-Complaints-To: staff@sunsite.dk In article <9nnv8qFi76U8@mid.individual.net>, Bob Eager writes: > On Wed, 18 Jan 2012 12:41:06 +0000, glen herrmannsfeldt wrote: > > >> This is one case where VM has it easy. S/370 processors don't use an >> idle loop, but a wait state where they stop executing instructions. >> >> As I understand it, when IBM leased processors, they had a usage meter >> such that one would pay based on how much the processor was used. The >> usage meter stops in the wait state. > > Isn't that true on the PDP-11, with WAIT? And with at least some x86 CPUs > and HLT? > It can be done on a lot of systems with a HALT instruction. Many CPU will start up again when receiving an interrupt, which is how most systems get out of thier idle loops anyhow. Some systems, however, will take action when the CPU executes a HALT instruction. Qbus VAX 4000 were often configurable in this reguard. The default action was to force a system crash. It was because of this that I stopped using HALT as a kernel debug instruction. Back on 11/780, you simply got a console prompt and could enter CONTINUE when done debugging. It is important to note, that on some architectures, such as VAX, the program counter (aka instruction pointer, ...), is incremented by the halt instruction, so simply dismissing the interrupt can cause the system to move on to the next instruction (which is also why console CONTINUE worked on an 11/780).