Hi!
I am trying to do almost the same thing as @bbui210 but I am using std::thread. I am facing the issue that it is behaving sequential and not parallel. My QT GUI (QT application) is in the main thread. My code structure is like below-

Qt Code:
  1. int process(arguments)
  2. {
  3. //processing and saving the data in a file
  4. }
  5.  
  6. int main(arguments)
  7. {
  8. //GUI is called which accesses the file
  9. std::thread threadObj(process, arguments_of_process);
  10. threadObj.join();
  11. }
To copy to clipboard, switch view to plain text mode 

I want my GUI to keep updating itself as file changes. My main reason for using std::thread was that it was easier to use and also I had to pass arguments to the function. Can someone tell me what is wrong with my code?

Thanks!!