Pausing a process?

前端 未结 4 1190
轻奢々
轻奢々 2020-12-17 17:29

Is there a way to pause a process (running from an executable) so that it stops the cpu load while it\'s paused, and waits till it\'s unpaused to go on with its work? Possib

4条回答
  •  生来不讨喜
    2020-12-17 18:16

    There is a (almost) native way of doing this in Python, and it's quite simple :

    import time
    time.sleep(5)
    

    In this snippet, 5 is the number of seconds you want to pause your program.

提交回复
热议问题