Windows XP中每个线程时间片需要多长时间? [英] How long does it take each thread timeslice in Windows XP?
问题描述
我试图找出Windows中每个线程时间片(量子)要花费多长时间,但是我发现的唯一信息是关于时钟滴答从15到20ms或20-30ms. 我如何找到此信息? 我认为它可能因操作系统而异,但我不确定. 感谢您对此问题的任何建议.
I am trying to find out how long does it take each thread timeslice (quantum) in Windows but the only information that I found out is about the clock ticks being from 15 to 20ms or 20-30ms. How can I find this information ? I think it may vary from OS to OS, but I am not certain. I appreciate any suggestion on this subject.
谢谢.
推荐答案
此知识库文章有关Windows 2000 Server版本的一些信息:
This KB article has some information on Windows 2000 Server editions:
当前在Windows中,三个量子等于10毫秒(单处理器)或15毫秒(多处理器Pentium).这取决于为您的计算机选择的硬件抽象层(HAL).原始设备制造商(OEM)HAL可能具有不同的值.选择后台服务时(如在典型的服务器安装中可能会选择的那样),当前使用固定为36个量子点的时间片.
Currently in Windows, 3 quantums are equal to either 10 milliseconds (single processor) or 15 milliseconds (multiple-processor Pentium). This depends on the hardware abstraction layer (HAL) selected for your computer. Original Equipment Manufacturer (OEM) HALs may have a different value. Time slices that are fixed at 36 quantums are currently used when background services are selected (as you might choose in a typical server installation).
因此在多处理器奔腾上,一个量子将为5毫秒,而时间片将长达180毫秒.对我来说,那似乎很大……
So on a multi-processor Pentium, a quantum would be 5 ms and a time slice as long as 180 ms. That seems quite large to me, though...
这篇关于Windows XP中每个线程时间片需要多长时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!