🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.powerpc
Article #1580

Re: Ask yourself these before you choosing a 32bit OS...

#1580
From: Tim Smith
Date: Thu, 24 Aug 1995 05:02
35 lines
2051 bytes
Kazimir Kylheku <c2a192@ugrad.cs.ubc.ca> wrote:
>>preemptive multitasking is _less_ efficient than nonpreemptive
>>multitasking, because of preemption overhead.  many supercomputers run
>
>The overhead is insignificant. One hundred clock ticks per second
>are nothing to a modern CPU. Even the Commodore 64 had a 60hz clock
>tick for updating the clock and hooking in user interrupt routines.
>You don't know what you are talking about.

Besides, cooperative systems still have clock interrupts, too!  The
only extra overhead added to the preemptive interrupt handler is
something like this:

	if ( HigherPriorityTaskIsRunnable )
		Yield();

Basically, as far as overhead goes, all a preemptive system is really
doing is making sure that the process doesn't go too long without calling
the yield function.   There's no reason for it to have any more overhead
than a cooperative system, *unless* you are comparing to a cooperative
system that is running an application that is refusing to yield.  The
cooperative system will execute

	unsigned long x, y;

	for ( x = 0; x < MAXLONG; x++ )
		for ( y = 0; y < MAXLONG; y++ )
			;

more efficiently than the preemptive system.  But for cooperative systems
where the applications actually cooperate to keep the system responsive,
the preemptive system will be as efficient.

--Tim Smith
		
Technical Details
Message-ID: <41h15e$7a5@nntp5.u.washington.edu>
Path: arc1-ca.pugleaf.net!news.u.washington.edu!tzs
References: <3vh2hc$9dd@falcon.ccs.uwo.ca> <41astd$53u@steel.interlog.com> <41c9ut$g73@usenet.ucs.indiana.edu> <41diciINNj1j@keats.ugrad.cs.ubc.ca>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.u.washington.edu!tzs
From: tzs@u.washington.edu (Tim Smith)
Newsgroups: comp.sys.powerpc,comp.os.linux.advocacy,comp.sys.mac.advocacy,comp.os.os2.advocacy,comp.sys.amiga.advocacy,comp.sys.intel,alt.2600,comp.os.ms-windows.advocacy
Subject: Re: Ask yourself these before you choosing a 32bit OS...
Date: 24 Aug 1995 05:02:38 GMT
Organization: University of Washington School of Law, Class of ~'95
Message-ID: <41h15e$7a5@nntp5.u.washington.edu>
References: <3vh2hc$9dd@falcon.ccs.uwo.ca> <41astd$53u@steel.interlog.com> <41c9ut$g73@usenet.ucs.indiana.edu> <41diciINNj1j@keats.ugrad.cs.ubc.ca>
NNTP-Posting-Host: stein1.u.washington.edu
NNTP-Posting-User: tzs