-2

I found a code that launches a code using fork and execvp

but then by digging the web I realized it was not compatible with multithreading

so now I am quiet confused...

"the Pthreads standard specifies that an exec call from any thread must terminate all threads in the process and start a single new thread at main in the new image."

I definetely need multithreading, so in that context how do I launch an external executable, check if it is running and occasionaly kill it ?

thanks

Phil
  • 708
  • 1
  • 11
  • 22
  • nobody ? this is areal honest question , every time I check in google "multithread exec", people talk about fork, so how do I exec in a mutithread program ? – Phil Jun 07 '16 at 15:25

1 Answers1

0

I guess I'll use system() then, thanks for the wonderfull support

[comments dont work anymore]

Phil
  • 708
  • 1
  • 11
  • 22