in reply to Check the exe is running or not
Also see merlyn's solutions, Highlander - allow only one invocation at a time of an expensive CGI script and the WebTechniques article.