multiprocessing - C fork - how to wait for all children before starting workload? -


i trying fork() create multiple processes of same work. need of them created first, , @ same time start doing work. is, want of processes wait of other ones created, , once ready, start doing work @ same exact time.

is possible? thanks.

the simplest approach using signals, note there no way guarantee processes indeed run in parallel.

that's os decide.


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -