cmd prompt stuck and continues on enter key press

两盒软妹~` 提交于 2019-12-10 18:51:49

问题


Does anyone come across a scenario when the command prompt is running a process and then it gets stuck and the process is also sleeping. Then when we press Enter key in the cmd window the process continues.

Is there any way to avoid this? or can this be handled??


回答1:


If other processes are sucking all the cycles and have a higher prio, then your process might be stopped. A user input might just give it a prio boost, so it starts again.




回答2:


I changed the line where i call the program to:

start /hight <path-to-program> <params>

This means to start program in hight priority. It is much faster and it does not require you to press any keys during execution



来源:https://stackoverflow.com/questions/13599822/cmd-prompt-stuck-and-continues-on-enter-key-press

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!