Thanks 4r replying.
Actually I am working on the code which has to transfer files 4m one system to another.In main program i created a thread to accept that program file and then compile&run using TCC command.then i have to send the result file back to the system which sent that program file.

Everything is wrking is fine but after compiling program file it is just coming out of the main thread.