News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Threads execution time

Started by pavellus, August 18, 2006, 02:07:55 PM

Previous topic - Next topic

pavellus

I would like to know how Windows resolve thread execution time in the following three situations:

- if thread execute an empty while loop for example while (true) {;}
- if thread execute a loop waiting for a key pressed for example while (true) { if key_pressed() = true { break; } }
- if thread wait for synchronized resource for example object that is used by another thread.

Do windows execute every thread with the same time given a priori or
detect situations where thread is waiting for special signal and switch to the next thread?

Is any documentation describing windows algorithm of threads and processes scheduler?

James Ladd

Multithreading applications in win32 is a good resource.