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

Show parent comment

12

u/Mortomes Sep 02 '26

That is up to the OS to decide.