🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.xinu
Article #14

Priority Problem on Xinu

#14
From: Serge Rouveyrol
Date: Mon, 19 Jun 1989 09:44
32 lines
1567 bytes
On Xinu it is impossible to use the value of the priority in an application
( if (getprio() < value) { ......} or if(resume (...) < value) {...})
because the premption of the process can reach and a chprio() can be
executed by the new process.

This problem can be resolved with two new system_call with the next 
specification:

enter_region()
exit_region()

- A process after the execution of the system_call enter_region() 
is not preemptible until the execution of the system call exit_region().
- In a region all the system call who can give a waiting state are forbidden.
- After the execution of enter_region the process with the biggest priority
is executed.
- When a process is in a no_premptible state only the interruption
routine can interrupt the process => chprio () must never used in a 
interrupt routine.

Then we can write :

enter_region()
if (getprio() < value) {........}
exit_region()

ps) Monsieur Comer quand trouvera-t-on vos livres traduit en Fancais ?

-- 
"Les jours de pluie ...  etc ... "
serge@imag.imag.fr      serge@imag.UUCP      uunet.uu.net!imag!serge
Rouveyrol Serge,Laboratoire L.G.I,BP 53,38041 Grenoble , CEDEX , FRANCE
Technical Details
Message-ID: <5167@imag.imag.fr>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!mcvax!inria!imag!serge

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!mcvax!inria!imag!serge
From: serge@imag.imag.fr (Serge Rouveyrol)
Newsgroups: comp.os.xinu
Subject: Priority Problem on Xinu
Message-ID: <5167@imag.imag.fr>
Date: 19 Jun 89 09:44:57 GMT
Reply-To: serge@imag.imag.fr (Serge Rouveyrol)
Organization: IMAG, University of Grenoble, France
Lines: 32