Multiple fork() Concurrency

前端 未结 4 1495
花落未央
花落未央 2020-12-29 00:19

How do you use the fork() command in such a way that you can spawn 10 processes and have them do a small task concurrently.

Concurrent is the operative word, many pl

4条回答
  •  星月不相逢
    2020-12-29 00:29

    Just loop in the "main" process spawning one child after another with each assign a particular task.

提交回复
热议问题