Using fork(), how can I make child process run always first?

后端 未结 6 713
星月不相逢
星月不相逢 2020-12-19 20:11

Child and parent process execution is parallel and which starts first depends on OS scheduling. But what can be done to start child always before the parent?

This is

6条回答
提交回复
热议问题