Reputation: 2898
When user click Build button Python script needs to run.I execute this by using process but so many processes created when so many clicked the Build button, server hang.
Upvotes: 0
Views: 772
Reputation: 116458
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()
.
Upvotes: 1