Newsgroups: comp.sys.transputer
From: andyr@wizzy.com (Andy Rabagliati)
Subject: Re: Best way to deschedule?
Organization: W.Z.I.
Date: Thu, 17 Mar 1994 19:24:36 GMT
Message-ID: <CMtpx1.644@wizzy.com>

In article <1994Mar16.165830.1341@buck.ac.uk>,
Brendan Murphy <brendan@buck.ac.uk> wrote:
>We were wondering about the best way to force a high priority process to
>deschedule itself.  A colleague of mine looked through the transputer 
>reference manual and came up with the following:
>
>GUY
>  LDLP 0     -- current workspace pointer
>  RUNP       -- clone this process on the back of current process queue
>  STOPP      -- give that process a valid IPTR, kill myself
>
>Is this correct, and if so, is it optimal?
>

Looks OK. Optimal ? I cannot think of a quicker way, offhand.

As I am sure you are aware, only another active high priority
process can run in between this dying process and its clone.

Cheers,     Andy.

--
Andy Rabagliati  .  andyr@wizzy.com   .  W.Z.I. Consulting  .   (719)635-6099

