title: Python how to realize keeping cmdA executing till cmdB an cmdC finished
body: <p>I want to record some information when cmd B and cmd C are being executed.
  My idea is, executing cmd A(cmd A is mean to record information) before cmd B and cmd C start, then suspend cmd A when cmd B and cmd C are finished.
  How to achieve it? </p>