Microsoft Windows Internals 4th. ed.
Quantum
: a quantum is the amount of time a thread gets to run before Windows checks to
see whether another thread at the same priority is waiting to run.
1. win2000, XP : threads run by default for 2 clock intervals,
이것은 다음과 같이 표현한다. quantum value = 6 (2*3(clock tick))
2. Windows Server : threads run by default for 12 clock intervals, quantum value = 36 (12*3(clock tick)) : 컨텍스트 스위칭을 최소화 하기 위함.
내 컴퓨터의 clock resolution을 알아본다.
현재는 약 1msec 이다.
그렇다면 quantum value = 2 * clock tick = 2msec...
'일 > 프로그래밍' 카테고리의 다른 글
CPU 레지스터 (0) | 2010.08.05 |
---|---|
[ I/O ] [퍼온글] Overlapped IO 와 IOCP (2) (0) | 2010.06.21 |
[ I/O ] [퍼온글] Overlapped IO 와 IOCP (1) (0) | 2010.06.21 |
[ IPC ] memory-mapped file 관련 (0) | 2010.06.19 |
[퍼온글]프레임워크란? (0) | 2009.01.10 |