the mechanisms of CPU time-slice allocation among processes in Windows 2000

G

Guest

Who can tell me the mechanisms of CPU time-slice allocation among processes in Windows 2000? Any difference to UNIX?
I wrote an application on the console but found that it was running very slowly while the console's windows was not put on the top. What are the differences in the CPU time-slice allocation among Windows Applications, Console Applications and Windows Services
 
N

Niki Estner

moonriver said:
Who can tell me the mechanisms of CPU time-slice allocation among
processes in Windows 2000?

I'd recommend "Inside Windows 2000"; Although it covers far more than just
threading, it has an excellent chapter on the subject.
Any difference to UNIX?

I assume you only forgot the smily, didn't you?
I wrote an application on the console but found that it was running very
slowly while the console's windows was not put on the top. What are the
differences in the CPU time-slice allocation among Windows Applications,
Console Applications and Windows Services?

Go to "Control panel -> System properties -> Advanced -> Performance
Options". If you choose "Applications", the current foreground application
will get a "thread boost", i.e. more CPU time; Otherwise, all processes will
get the same share of the CPU.

AFAIK the task scheduler treats windows applications/console
applications/services equal.

Niki
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top