r/C_Programming • • Sep 01 '26

Question How process ids are generated

i know fork creates processes but how process ids are generated

6 Upvotes

22 comments sorted by

View all comments

57

u/Living_Fig_6386 Sep 01 '26

C knows nothing of processes or process IDs. That sort of thing is entirely up to the OS.