title: Should I use fork or threads?
body: <p>In my script, I have a <strong>function foo</strong> which basically uses <strong>pynotify</strong> to notify user about something repeatedly after a time interval say 15 minutes. </p>
  
  <pre><code>def foo:
      while True:
          """Does something"""
          time.sleep(900)
  </code></pre>
  
  <p>My main script has to interact with user &amp; does all other things so I just cant call the foo() function. directly.</p>
  
  <blockquote>
    <p>Whats the better way of doing it <strong>and why</strong>?
    Using fork or threads?</p>
  </blockquote>