🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.powerpc
Article #3229

Re: Debate: PowerMac "trounces" Pentium....???

#3229
From: Markus Schoder
Date: Thu, 15 Feb 1996 12:44
30 lines
2416 bytes
Gregory L Hansen (ghansen@isc.sjsu.edu) wrote:
: No matter what OS you're using, you'll have to poll sometimes to look for 
: things like key presses, switching the program to background or 
: foreground, quit and pause commands, things like that.  Even if it's a 
: straight read-data, calculate, save-date, you want the option of quitting 
: in the middle of it.  So somewhere at the bottom of your loop place a 
: polling call, and your WaitNextEvent and event handler can be included 
: in the OS-specific file.

The things you describe don't need polling, say under Unix. You can quit
most programs by typing a special key (normally ctrl-c) in most shells.
If the program runs in the background you use the kill command. All of this
is handled by the OS and shell. The programmer needs not take care about
that in his program.

I have done some programming in the Unix environment and didn't normally use
any polling, because it's not needed.

: And I suppose someone will come up with an example or two where that 
: hasn't been done but the program still works fine in the operating 
: system of their choice or for the task at hand.  To that, I can only 
: suggest that if you can write OS-specific code, you can find someplace to 
: call your polling function.

The point is that for a straight read-data, calculate, save-date program that
isn't OS-specific in the least you don't need polling or anything else and
are still able to stop your program switch between background or foreground
or assign a different priority to it under Unix.

Markus
Technical Details
Message-ID: <4fv9qo$fdv@rs18.hrz.th-darmstadt.de>
Path: arc1-ca.pugleaf.net!hp82.rbg.informatik.th-darmstadt.de!schoder
References: <nevin-0602962253080001@150.135.1.79> <4fdi45$gu7@eken.hv.se> <4fea7g$eio@nyx.cs.du.edu> <9602092127.AA24456@ues5.cern.ch> <4ft2ug$odm@nuke.csu.net>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!hp82.rbg.informatik.th-darmstadt.de!schoder
From: schoder@rbg.informatik.th-darmstadt.de (Markus Schoder)
Newsgroups: comp.sys.powerpc,comp.os.linux.advocacy,comp.sys.mac.advocacy,comp.os.os2.advocacy,comp.sys.amiga.advocacy,comp.sys.intel
Subject: Re: Debate: PowerMac "trounces" Pentium....???
Followup-To: comp.sys.powerpc,comp.os.linux.advocacy,comp.sys.mac.advocacy,comp.os.os2.advocacy,comp.sys.amiga.advocacy,comp.sys.intel
Date: 15 Feb 1996 12:44:08 GMT
Organization: Technische Hochschule Darmstadt
Message-ID: <4fv9qo$fdv@rs18.hrz.th-darmstadt.de>
References: <nevin-0602962253080001@150.135.1.79> <4fdi45$gu7@eken.hv.se> <4fea7g$eio@nyx.cs.du.edu> <9602092127.AA24456@ues5.cern.ch> <4ft2ug$odm@nuke.csu.net>
NNTP-Posting-Host: hp82.rbg.informatik.th-darmstadt.de
X-Newsreader: TIN [version 1.2 PL2]