|

楼主 |
发表于 2010-3-7 20:19:42
|
显示全部楼层
厄,对播放器有用的,windows media player会把这个值设到0.98ms,微软自己最清楚
windows不是实时操作系统,所以尽量减少I/O操作、调整线程优先级和timer精度对播放很有好处的
换句话说,其实windows压根就不合适拿来播放音乐
Why Is Stock Windows XP Not a Real-time System?
Microsoft Windows XP has been designed as a general-purpose operating system, suitable for use both as an interactive system on the desktop and as a server system on a network [Solomon 98]. The shortcomings of Windows XP in real-time applications have been thoroughly researched [Ramamritham 98] [Timmerman & Monfret 96]:
Too few thread priorities. --尽量把播放器设置为最高优先级有帮助
Opaque and non-deterministic scheduling decisions. --调整Win32PrioritySeparation有帮助
Priority inversion, particularly in interrupt processing. --尽量减少硬件I/O
While faster processors do dramatically increase processing throughput and average response times and thus may lead one to speculate that the system may become real-time, they can not make a non-deterministic system deterministic or even always improve worst-case response times. So newer hardware platforms will not make Windows XP itself real-time.
Some developers have resorted to using two computers, one to run Windows XP and another to run a real-time OS. But this adds significant hardware costs and complicates the development and integration effort, and is not a general or cost effective solution.
[ 本帖最后由 pig2man 于 2010-3-7 20:22 编辑 ] |
|