''fork'' and ''join'' commands in operating systems

Terminal Velocity

Active Member
Joined
Oct 13, 2021
Messages
292
Reaction score
189
Credits
2,094
What is the role of the ''fork'' and ''join'' commands (as part of process mapping) in an operating system and in what ways can we use them?
 


MattWinter

Active Member
Joined
Dec 5, 2022
Messages
114
Reaction score
148
Credits
840
I'm not exactly sure what you mean here. I don't think join is a standard OS command. Fork, however. Will create a new process.
If you're talking about multithreaded programming, fork will create a new thread, while join, I think, will wait for an existing thread to complete before continuing execution.
 

MattWinter

Active Member
Joined
Dec 5, 2022
Messages
114
Reaction score
148
Credits
840
Ok. I think at a high level, it allows you to do things like perform calculations that dont rely on each other on different threads, but then use join to wait for them all to finish before continuing execution.
 
MALIBAL Linux Laptops

Linux Laptops Custom Built for You
MALIBAL is an innovative computer manufacturer that produces high-performance, custom laptops for Linux.

For more info, visit: https://www.malibal.com

Members online

No members online now.

Top