I have some problems with my code about fork(), sleep() and wait(). Is there a way for me to contact someone on the page private. I don't want that my code is public to everyone.
You could send someone a private message but you would be limiting yourself to only responses from that person (assuming that they even have an answer).
My advice would be to isolate the problem and just put in the code relevant to the problem, saying that this is a beginner forum and if you are a beginner it is highly unlikely that someone is going to steal your code (if that is even the issue). Most people are just here to help or seek answers anyway.
Well I am having problem with printing process tree with pstree. It seems like every process ends before I can call pstree. So my question is how to use wait and sleep in fork?