"Rene" <no****@nospam.com> wrote in message
news:O5**************@tk2msftngp13.phx.gbl...
I am afraid that this is not possible at all. for the thread to sleep it
must be active at the moment you invoke the sleep function (otherwise it
is senseless because the thead IS sleeping!).
What if I have a dual processor? Can't processor 1 and 2 be running a
different thread at the same time?
Sure, but you still need to use the correct synchronization mechanism. In
almost all cases you should use a sync object, e.g. ManualResetEvent, and
the thread blocks on that object until some other thread sets the object to
the signalled state, rather then directly Suspend/Resume a thread.