title: Threaded C programs in minGW
body: <p>I am creating a program that intercepts all packets when a <strong>certain</strong> link is down. I would need to implement the sniffer and the link-checker as threads. But minGW does not have pthreads.</p>
  
  <p>How do you implement threads in minGW?</p>
  
  <p><strong>Edit:answer</strong></p>
  
  <p><a href="http://www.codeproject.com/KB/threads/sync.aspx" rel="nofollow">http://www.codeproject.com/KB/threads/sync.aspx</a> </p>
  
  <p>Vivek Goel led me to this (_beginthread). Both examples compile on Code::blocks/minGW!</p>