Is there a way to have a part of your code running in the background in c while the main program continues and check later on in your main program that if the sub-process is still running. I have tried to implement using pthread and send pthreadkill detect if it still runs however I heard it's kind of unreliable so I wonder if there is a better way to do it.
↧