title: How to improve the code performance if the most time-consuming part comes to posix.waitpid?
body: <p>I use cprofile to profile a python program. The most time-consuming part turns out to be posix.waitpid. What can I do to improve the code performance? See the screenshot below for the one line of my cprofile result</p>
  
  <p><a href="https://i.stack.imgur.com/yINTv.png" rel="noreferrer"><img src="https://i.stack.imgur.com/yINTv.png" alt="enter image description here"></a></p>