I am trying to simulate an environment where 'n' systems are simultaneously, sending 'x' requests each, to a server in my program

I am using Qhttp to send the 'x' requests to the server. This part is working fine perfectly.

Now in order to simulate 'n' systems sending these requests simultaneously I am using multithreading.

In main i have this
Qt Code:
  1. for(int i=0;i<noOfThreads;i++)
  2. {
  3. MyThread t(noOfLogs);
  4. t.start();
  5. }
To copy to clipboard, switch view to plain text mode 

and I have reimplemented run() of MyThread class to send the x requests.

The program is however crashing, where am I going wrong?