r/C_Programming • u/Read-Documentation-7 • Jun 07 '26
Why Processes?
Hello. I was wondering what are the benefits of using processes over threads. I understand the differences between the two, but I am having trouble trying to understand when would be the best use case to implement them. Can someone give me some advice for when processes should be used? Thanks.
38
Upvotes
View all comments
Show parent comment
-2
u/dkopgerpgdolfg Jun 07 '26
Correct, but when you start a new one, you're not "changing" it. It has to get some directory, and it gets it from the process that started it.
You're forgetting non-private non-file mappings...
(and btw. the predefined flag names don't start with MM)