[comp.lang.c] schedulers

Randomizer@cup.portal.com (04/08/88)

Does anyone have code that shows how to implement a task
scheduler? I would like to know how to implement those scheduling
algorithms ala modula-2. Borland once sent me a disk containing
a file called PAS2C.arc containing files for implementing a
task switching coroutine in Turbo 4.0 but did not give me all
of the files. Does anyone know how to do this sort of thing?

randomizer@cup.portal.com  *or*
aron_nelson@cup.portal.com

wes@obie.UUCP (Barnacle Wes) (04/11/88)

In article <4367@cup.portal.com>, Randomizer@cup.portal.com writes:
> Does anyone have code that shows how to implement a task
> scheduler?

The C Chest columns in Dr. Dobb's Journal had the source for a
lightweight, preemptive scheduler in them.  I think it was Dec. and
Jan., but I'm not sure.  It was written in C, but it might give you
some good ideas for your Pascal version.
-- 
    /\              -  "Against Stupidity,  -    {backbones}!
   /\/\  .    /\    -  The Gods Themselves  -  utah-cs!utah-gr!
  /    \/ \/\/  \   -   Contend in Vain."   -  uplherc!sp7040!
 / U i n T e c h \  -       Schiller        -     obie!wes