From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fdd80,5cdb0c1dbaceb85b X-Google-NewGroupId: yes X-Google-Thread: ffc31,5cdb0c1dbaceb85b X-Google-NewGroupId: yes X-Google-Thread: 1164f8,5cdb0c1dbaceb85b X-Google-NewGroupId: yes X-Google-Attributes: gide311f70d09,gidf4c4f7386e,gidd180ab3bd8,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.189.72 with SMTP id gg8mr2491246pbc.4.1326983147825; Thu, 19 Jan 2012 06:25:47 -0800 (PST) Path: lh20ni200056pbb.0!nntp.google.com!news1.google.com!goblin1!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: paramucho@hotmail.com (paramucho) Newsgroups: alt.sys.pdp11,vmsnet.pdp-11,comp.sys.dec Subject: Re: PDP11 Values from MFPT Date: Thu, 19 Jan 2012 14:25:41 GMT Organization: Aioe.org NNTP Server Message-ID: <4f19229f.41848032@nntp.aioe.org> References: <4f12e49d$0$295$14726298@news.sunsite.dk> <4f175c07.15409279@nntp.aioe.org> <4f17edcc.11901487@nntp.aioe.org> Reply-To: paramucho@hotmail.com NNTP-Posting-Host: yPe0Vz9rK3epnEf2vEo6yg.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Forte Agent 1.5/32.451 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit On Wed, 18 Jan 2012 19:00:03 +0100, Johnny Billquist wrote: >On 2012-01-18 17:25, paramucho wrote: >> On Wed, 18 Jan 2012 14:18:26 +0100, Johnny Billquist >> wrote: >> >> >> >>>>> In fact, the V11 emulator has a little API which is used to pass >>>>> information between the emulator and the system. It's used to >>>>> relinquish control so that the emulator doesn't hog all the CPU time >>>>> and for various other functions. >>>> >>>> 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. >>> >>> So does a PDP-11 normally, which is why I wonder what this API is >>> expected to be used for. >> >> Run RSX under SimH and then look at CPU usage and you'll see why :-) >> >> Under SimH, RSX uses up a full CPU slot, just like RT-11 systems which >> don't use the WAIT instruction. >> >> V11 solves the problem for RUST systems, but that doesn't help other >> systems. > >That is because you need to tell SimH to actually release the machine >when the PDP-11 executes a WAIT... :-) >In SimH: set cpu idle > >otherwise, SimH will "emulate" the WAIT instruction by actually doing a >tight loop. Yes, I haven't read the SimH documentation for quite some time :-) >From what I can see the SET CPU IDLE code was added in 2006. It applies to RSX and RSTS, but not RT-11 or Unix because they, like RUST, don't use the WAIT instruction. Ian