title: Python check if a process is running or not , and reexecute
body: <p>I am trying to create a python script that check if a program is running , if this program is not running this program must be reexecuted automatically with this python script</p>
  
  <p>I found out that processes on unix-based operating systems create a lock file to notify that a program is currently running, at which point we can use os.stat(location_of_file) to check if the file exists to determine if a program is running or not.</p>
  
  <p>Is there a similar lock file created on Windows?</p>
  
  <p>If not what are the various ways in Python by which we can determine if a process is running or not?</p>
  
  <p>I am using python 2.7 </p>