The Active Network
ActiveMac Anonymous | Create a User | Reviews | News | Forums | Advertise  
 

  *  

  Why are process and thread IDs multiples of four?
Time: 07:17 EST/12:17 GMT | News Source: Microsoft | Posted By: Kenneth van Surksum

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, the reason that kernel handles are always a multiple of four is part of the specification and will be guaranteed for the foreseeable future.)

Process and thread IDs are multiples of four as a side-effect of code re-use. The same code the allocates kernel handles is also used to allocate process and thread IDs. Since kernel handles are a multiple of four, so too are process and thread IDs. This is an implementation detail, so don't write code that relies on it. I'm just telling you to satify your curiosity.

Write Comment
Return to News

  Displaying 576 through 600 of 615
Prev | First | Next
  The time now is 10:51:03 AM ET.
Any comment problems? E-mail us
#576 By 4240821 (82.115.4.230) at 7/29/2025 2:11:48 AM
https://justpaste.me/fJTM1
https://justpaste.me/fI1h1
https://justpaste.me/dM1l4
https://justpaste.me/YkMh3
https://justpaste.me/aegI2
https://justpaste.me/cGK01
https://justpaste.me/eilk1
https://justpaste.me/dRg02
https://justpaste.me/adhI1
https://justpaste.me/dPfS3

#577 By 4240821 (82.115.4.230) at 7/29/2025 8:23:52 PM
https://justpaste.me/f9qo4
https://justpaste.me/ZsNL3
https://justpaste.me/ciFm1
https://justpaste.me/Zz7O2
https://justpaste.me/fNBC2
https://justpaste.me/fOHU3
https://justpaste.me/eN4m1
https://justpaste.me/bQht3
https://justpaste.me/dfdY5
https://justpaste.me/dJ1q3

#578 By 4240821 (82.115.4.230) at 7/31/2025 10:58:02 AM
https://justpaste.me/a8b21
https://justpaste.me/bjiv
https://justpaste.me/czjA5
https://justpaste.me/axCp1
https://justpaste.me/bD8R4
https://justpaste.me/dF0C4
https://justpaste.me/aaIZ3
https://justpaste.me/g56c1
https://justpaste.me/bI5V2
https://justpaste.me/a78n1

#579 By 4240821 (82.115.4.230) at 7/31/2025 6:59:47 PM
https://justpaste.me/efCj2
https://justpaste.me/Z1Gc1
https://justpaste.me/alk6
https://justpaste.me/Z9Gy1
https://justpaste.me/a81c
https://justpaste.me/evi7
https://justpaste.me/ZBWE2
https://justpaste.me/czyV
https://justpaste.me/fDJK3
https://justpaste.me/d7xQ1

#580 By 4240821 (82.115.4.230) at 8/2/2025 8:35:12 AM
https://justpaste.me/eVIB3
https://justpaste.me/aR4S2
https://justpaste.me/eqH9
https://justpaste.me/aaeg4
https://justpaste.me/c6SP1
https://justpaste.me/cIWE2
https://justpaste.me/ansR2
https://justpaste.me/dbsO1
https://justpaste.me/d7ix3
https://justpaste.me/cXUo2

#581 By 4240821 (82.115.4.230) at 8/2/2025 8:04:10 PM
https://justpaste.me/czBS1
https://justpaste.me/chUw4
https://justpaste.me/Yyb91
https://justpaste.me/abJR4
https://justpaste.me/cWxt5
https://justpaste.me/Z8bd1
https://justpaste.me/Zl0R2
https://justpaste.me/Z5IA1
https://justpaste.me/g4m91
https://justpaste.me/ay5q2

#582 By 4240821 (82.115.4.230) at 8/3/2025 3:23:47 PM
https://justpaste.me/YzQx
https://justpaste.me/eZno
https://justpaste.me/bk8d
https://justpaste.me/ZGYA
https://justpaste.me/efmi2
https://justpaste.me/ZASA2
https://justpaste.me/Yf4P
https://justpaste.me/b118
https://justpaste.me/cgM91
https://justpaste.me/dOb92

#583 By 4240821 (82.115.4.230) at 8/4/2025 12:22:13 PM
https://moanio.com/video.php?id=2270
https://moanio.com/video.php?id=4472
https://moanio.com/video.php?id=1745
https://moanio.com/video.php?id=1786
https://moanio.com/video.php?id=3998
https://moanio.com/video.php?id=288
https://moanio.com/video.php?id=2349
https://moanio.com/video.php?id=2948
https://moanio.com/video.php?id=5404
https://moanio.com/video.php?id=5516

#584 By 4240821 (82.115.4.230) at 8/5/2025 2:56:23 AM
https://moanio.com/video.php?id=1657
https://moanio.com/video.php?id=3630
https://moanio.com/video.php?id=3891
https://moanio.com/video.php?id=851
https://moanio.com/video.php?id=3187
https://moanio.com/video.php?id=1532
https://moanio.com/video.php?id=6937
https://moanio.com/video.php?id=5684
https://moanio.com/video.php?id=3424
https://moanio.com/video.php?id=307

#585 By 4240821 (82.115.4.230) at 8/5/2025 10:08:50 PM
https://moanio.com/video.php?id=2570
https://moanio.com/video.php?id=854
https://moanio.com/video.php?id=4779
https://moanio.com/video.php?id=4804
https://moanio.com/video.php?id=629
https://moanio.com/video.php?id=3425
https://moanio.com/video.php?id=5375
https://moanio.com/video.php?id=749
https://moanio.com/video.php?id=3868
https://moanio.com/video.php?id=5956

#586 By 4240821 (82.115.4.230) at 8/6/2025 6:31:50 PM
https://moanio.com/video.php?id=3248
https://moanio.com/video.php?id=3049
https://moanio.com/video.php?id=2459
https://moanio.com/video.php?id=4041
https://moanio.com/video.php?id=296
https://moanio.com/video.php?id=2129
https://moanio.com/video.php?id=3729
https://moanio.com/video.php?id=5296
https://moanio.com/video.php?id=4649
https://moanio.com/video.php?id=2754

#587 By 4240821 (82.115.4.230) at 8/6/2025 11:44:00 PM
https://moanio.com/video.php?id=5012
https://moanio.com/video.php?id=2931
https://moanio.com/video.php?id=5489
https://moanio.com/video.php?id=6595
https://moanio.com/video.php?id=402
https://moanio.com/video.php?id=2183
https://moanio.com/video.php?id=2881
https://moanio.com/video.php?id=1085
https://moanio.com/video.php?id=5719
https://moanio.com/video.php?id=4263

#588 By 4240821 (82.115.4.230) at 8/7/2025 5:55:14 AM
https://moanio.com/video.php?id=7117
https://moanio.com/video.php?id=4098
https://moanio.com/video.php?id=5336
https://moanio.com/video.php?id=2539
https://moanio.com/video.php?id=1527
https://moanio.com/video.php?id=1211
https://moanio.com/video.php?id=5547
https://moanio.com/video.php?id=7035
https://moanio.com/video.php?id=5334
https://moanio.com/video.php?id=6584

#589 By 4240821 (82.115.4.230) at 8/7/2025 7:49:19 PM
https://moanio.com/video.php?id=4678
https://moanio.com/video.php?id=463
https://moanio.com/video.php?id=1046
https://moanio.com/video.php?id=4239
https://moanio.com/video.php?id=4284
https://moanio.com/video.php?id=6778
https://moanio.com/video.php?id=3896
https://moanio.com/video.php?id=6750
https://moanio.com/video.php?id=2190
https://moanio.com/video.php?id=2594

#590 By 4240821 (82.115.4.230) at 8/8/2025 7:39:17 AM
https://moanio.com/video.php?id=7182
https://moanio.com/video.php?id=5377
https://moanio.com/video.php?id=863
https://moanio.com/video.php?id=4056
https://moanio.com/video.php?id=3307
https://moanio.com/video.php?id=704
https://moanio.com/video.php?id=3760
https://moanio.com/video.php?id=3214
https://moanio.com/video.php?id=5777
https://moanio.com/video.php?id=4926

#591 By 4240821 (82.115.4.230) at 8/8/2025 10:15:04 PM
https://moanio.com/video.php?id=531
https://moanio.com/video.php?id=1115
https://moanio.com/video.php?id=3562
https://moanio.com/video.php?id=5146
https://moanio.com/video.php?id=4217
https://moanio.com/video.php?id=2710
https://moanio.com/video.php?id=2559
https://moanio.com/video.php?id=2286
https://moanio.com/video.php?id=6572
https://moanio.com/video.php?id=2244

#592 By 4240821 (82.115.4.230) at 8/9/2025 5:23:00 PM
https://moanio.com/video.php?id=4804
https://moanio.com/video.php?id=4775
https://moanio.com/video.php?id=6822
https://moanio.com/video.php?id=5476
https://moanio.com/video.php?id=719
https://moanio.com/video.php?id=7064
https://moanio.com/video.php?id=3716
https://moanio.com/video.php?id=4105
https://moanio.com/video.php?id=1940
https://moanio.com/video.php?id=4328

#593 By 4240821 (82.115.4.230) at 8/10/2025 4:19:51 PM
https://moanio.com/video.php?id=4211
https://moanio.com/video.php?id=4039
https://moanio.com/video.php?id=4175
https://moanio.com/video.php?id=4620
https://moanio.com/video.php?id=4908
https://moanio.com/video.php?id=6834
https://moanio.com/video.php?id=2430
https://moanio.com/video.php?id=5109
https://moanio.com/video.php?id=1787
https://moanio.com/video.php?id=7165

#594 By 4240821 (178.217.45.24) at 8/11/2025 9:24:25 AM
https://www.xfree.com/starunonab594
https://www.xfree.com/pingbarnamonp604
https://www.xfree.com/ringlismchingma489
https://www.xfree.com/imarnsichin459
https://www.xfree.com/emfetepus238
https://www.xfree.com/bermiaclimin452
https://www.xfree.com/tinegemen589
https://www.xfree.com/britanares925
https://www.xfree.com/raytadarmlo924
https://www.xfree.com/fogicvedet931

#595 By 4240821 (82.115.4.230) at 8/11/2025 2:32:35 PM
https://www.xfree.com/ariditquan329
https://www.xfree.com/defacgealis373
https://www.xfree.com/lazacutbu566
https://www.xfree.com/lerabtupa734
https://www.xfree.com/quiwatchlunaz665
https://www.xfree.com/calscomdardbel402
https://www.xfree.com/diaromape44
https://www.xfree.com/rolefilawn10
https://www.xfree.com/etosgomis752
https://www.xfree.com/nazupemill288

#596 By 4240821 (82.115.4.230) at 8/12/2025 2:05:01 PM
https://www.xfree.com/zillcontsoljua286
https://www.xfree.com/cossicache876
https://www.xfree.com/crocatdatach838
https://www.xfree.com/thagibbubbsidd984
https://www.xfree.com/ooktocardao662
https://www.xfree.com/toatawiggcont455
https://www.xfree.com/haucanacon649
https://www.xfree.com/erorpreral521
https://www.xfree.com/fredeardiavin130
https://www.xfree.com/lcullooptiten534

#597 By 4240821 (82.115.4.230) at 8/13/2025 1:12:12 PM
https://www.xfree.com/tezgogepost421
https://www.xfree.com/lerenwhifo843
https://www.xfree.com/velvintmeber844
https://www.xfree.com/tintergtylta101
https://www.xfree.com/forriresmu797
https://www.xfree.com/chanparsgevem917
https://www.xfree.com/sucessieclon64
https://www.xfree.com/indegespi70
https://www.xfree.com/thearlidita880
https://www.xfree.com/srivlunggungu154

#598 By 4240821 (82.115.4.230) at 8/13/2025 11:59:06 PM
https://www.xfree.com/poonssuffcanra892
https://www.xfree.com/chrisosekri408
https://www.xfree.com/morrolipart540
https://www.xfree.com/amisbarsi676
https://www.xfree.com/nyoufalrive231
https://www.xfree.com/nopanjaka466
https://www.xfree.com/tworosvofilm608
https://www.xfree.com/dipoundnoball569
https://www.xfree.com/grufrunheti837
https://www.xfree.com/inbecimo192

#599 By 4240821 (82.115.4.230) at 8/14/2025 6:54:48 PM
https://www.xfree.com/contmiclufil236
https://www.xfree.com/gymrebupal487
https://www.xfree.com/pondkooverpai847
https://www.xfree.com/rijulaword388
https://www.xfree.com/barteruno147
https://www.xfree.com/jeostonopher32
https://www.xfree.com/blephaqaces749
https://www.xfree.com/misettholhealth442
https://www.xfree.com/riwetenmedd921
https://www.xfree.com/reauperpkarlvi470

#600 By 4240821 (82.115.4.230) at 8/15/2025 9:11:29 AM
https://www.xfree.com/lochufullli344
https://www.xfree.com/prevupdoubbia651
https://www.xfree.com/procmonsmarzu202
https://www.xfree.com/warwelldulkers911
https://www.xfree.com/schemitcomme499
https://www.xfree.com/ledersiper127
https://www.xfree.com/headhplanunspood493
https://www.xfree.com/semigzole266
https://www.xfree.com/sneezhosrelan800
https://www.xfree.com/lescilalo385

Write Comment
Return to News
  Displaying 576 through 600 of 615
Prev | First | Next
  The time now is 10:51:03 AM ET.
Any comment problems? E-mail us
User name and password:

 

  *  
  *   *