Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!lavaca.uh.edu!menudo.uh.edu!sugar!peter From: peter@sugar.hackercorp.com (Peter da Silva) Newsgroups: comp.sys.amiga.programmer Subject: Re: How do we change the scheduler? (Was Re: Multitasking at home...) Message-ID: <7564@sugar.hackercorp.com> Date: 21 Jan 91 13:08:26 GMT References: <17210@cbmvax.commodore. <1991Jan17.204425.8037@ncsuvx.ncsu.edu> Organization: Sugar Land Unix - Houston Lines: 13 In article <1991Jan17.204425.8037@ncsuvx.ncsu.edu>, kdarling@hobbes.ncsu.edu (Kevin Darling) writes: > Whenever a task switch takes place, the kernel would first increment all > process Ages, and pick by the highest Age. This would add considerably to the cost of a task switch, which right now is pretty close to the ideal of "save registers, queue this task, pull the next task from the ready queue, restore registers". The mechanism Kent Paul Dolan suggested seems better. I'm going to have to think about it a while... there may not be enough hooks to do it efficiently. -- Peter da Silva. `-_-' .