fork() and wait() with two child processes

后端 未结 3 444

I need to use the fork() and wait() functions to complete an assignment. We are modelling non-deterministic behaviour and need the program to fork() if there is more than on

3条回答
  •  遥遥无期
    2020-12-02 11:53

    brilliant example Jonathan Leffler, to make your code work on SLES, I needed to add an additional header to allow the pid_t object :)

    #include 
    

提交回复
热议问题