🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.xinu
Article #166

Re: Q: is there a bug in sleep10() ?

#166
From: Bruce M. Walker
Date: Mon, 14 Dec 1992 02:04
16 lines
1313 bytes
In article <3854@isgtec.isgtec.com> bmw@isgtec.com (Bruce M. Walker) writes:
> in the SYSCALLs "sleep()" and "sleep10()" from sections 10.5
> and 10.6, resched() is called directly from these functions, and
> *with the interrupts enabled*!

Well I just found support for my assertion that the Comer '84 code for
sleep10()/sleep() is busted:  in a later version of XINU code that I
had received from John Reed (johnr%pacdata.uucp@ucsd.edu), sleep10() and
sleep() have both been patched so that resched() is called from within
disable(ps)/restore(ps).  So I think I can rest assured that indeed,
resched() and ctxsw() must be executed atomically, as I thought.

--
"Eventually, I decided that thinking was not getting me very far and it
 was time to try building."           -- Rob Pike, The Text Editor sam
      bmw@isgtec.com   [ ...!uunet.ca!isgtec!bmw ]  Bruce Walker
Technical Details
Message-ID: <3855@isgtec.isgtec.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!swrinde!cs.utexas.edu!torn!utzoo!censor!isgtec!bmw
References: <3854@isgtec.isgtec.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!swrinde!cs.utexas.edu!torn!utzoo!censor!isgtec!bmw
From: bmw@isgtec.com (Bruce M. Walker)
Newsgroups: comp.os.xinu
Subject: Re: Q: is there a bug in sleep10() ?
Message-ID: <3855@isgtec.isgtec.com>
Date: 14 Dec 92 02:04:47 GMT
References: <3854@isgtec.isgtec.com>
Sender: root@isgtec.com
Distribution: world
Organization: ISG Technologies Inc., Mississauga Ontario
Lines: 16