When user click Build button Python script needs to run.I execute this by using process but so many processes created when so many cli开发者_运维技巧cked the Build button, server hang.
Trying my best to read between your (few) lines...
You could disable the button until the process finishes, so your users can't press it again until the script has completed.
Or, if you want to run the process synchronously instead, you might want to look into Process.WaitForExit()
.
精彩评论