Scheduling of Threads

Prof. Peter Stoehr peter.stoehr at weihenstephan.org
Fri Oct 20 16:48:31 EDT 2000


Hi *,

Konrad Hinsen wrote:
> 
> "Prof. Peter Stoehr" <peter.stoehr at weihenstephan.org> writes:
> 
> > I'm giving lectures about Operating-Systems. It would be nice to give
> > students the possibility to write different scheduler (Round-Robin,
> > FIFO, ...). Such a scheduler should manage a set of threads.
> 
> That level of control is difficult to achieve, it's the OS that
> hands out CPU time to the threads. You could play tricks with locks
> etc. to illustrate scheduling techniques, but it wouldn't be very
> realistic. If that's what you want to do, perhaps the microthread
> package for Stackless Python is a better starting point, because it
> is simpler. See http://world.std.com/~wware/uthread.html for details.

I always assumed that the threading of python is independent of the OS
and is done by python itself.
But yaybe I've learned somethin new.

Greeting's from Erding
    Peter

-- 
---------------------------------------------------------------------------
  Prof. Peter Stoehr --- Teisenbergweg 6 --- 85435 Erding ---
08122/47232
      http://www.weihenstephan.org/home/ak/support/team/jpg/peter.jpg
---------------------------------------------------------------------------
		I'm the terror that flaps through the night



More information about the Python-list mailing list