Windows XP 中每个线程时间片需要多长时间? [英] How long does it take each thread timeslice in Windows XP?

查看:19
本文介绍了Windows XP 中每个线程时间片需要多长时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图找出 Windows 中每个线程时间片(量子)需要多长时间,但我发现的唯一信息是关于时钟滴答的信息是 15 到 20 毫秒或 20 到 30 毫秒.我怎样才能找到这些信息?我认为它可能因操作系统而异,但我不确定.我很感激关于这个主题的任何建议.

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 中,3 个量程等于 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).

因此,在多处理器 Pentium 上,一个时间片为 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆