Microthreads: wait( duration ) with minimal processor overhead, u

Michael Hudson mwh21 at cam.ac.uk
Sat May 27 05:51:03 EDT 2000

Courageous <jkraska1 at san.rr.com> writes:

> > Normal sleeping threads (for instance, a thread that has blocked while
> > waiting for input from a queue, or waiting for a timer to finish) do not
> > take up any processor activity until the they are reactivated by the
> > event that wakes them. I think you may be working on an already-solved
> > problem.
> Eh? These are *microthreads*. Using thousands and thousands
> of "normal" threads will clobber your cpu. And yet in a very
> simple test of microthreads, I was able to spawn up 10,000 of
> them and watch them finish in under 3 seconds flat. Quite
> remarkable.
> I'll be a monkey's uncle if the author of the uthread library
> doesn't know all about how normal threads work...

Who was the person you just replied to!

confused-ly y'rs

  SCSI is not magic. There are fundamental technical reasons why it
  is necessary to sacrifice a young goat to your SCSI chain now and 
  then.                                                  -- John Woods

More information about the Python-list mailing list