Showing results for February 28, 2008 - The Old New Thing

Feb 28, 2008
Post comments count0
Post likes count1

Why are process and thread IDs multiples of four?

Raymond Chen
Raymond Chen

On Windows NT-based operating systems, process and thread IDs happen always to be a multiple of four. Is this just a coincidence? Yes, it's just a coincidence, and you shouldn't rely on it since it is not part of the programming contract. For example, Windows 95 process and thread IDs were not always multiples of four. (By comparison, th...

History