mardi 17 février 2015

C++ Create two processes and call functions


Vote count:

0




This maybe a simple question but I want to know how to create 2 processes using fork and then call a function from both processes. Would it be ok to call the fork() once since it returns a child and a parent?


I also need to know how to set one process to sleep for a certain period of time while the other process is running.



asked 54 secs ago







C++ Create two processes and call functions

Aucun commentaire:

Enregistrer un commentaire