title: How to read from a file every 30ms and process it in a new thread?
body: <p>I have a file with several integers (each one in a new line). I want to read the file every 30ms and process each of these integers. </p>
  
  <p>Software : C++</p>
  
  <p>Present idea :
  1) In the main(), use file input/ouput to continuously read from the file and sleep for 30ms everytime.
  2) Everytime I read an integer, I create a new thread which processes this integer.</p>
  
  <p>Will the main() be suspended till the new thread finishes its operation? or will it also run in parallel?
  Is there any better approach to doing the same process?</p>