in reply to I am not able to join a thread when another child process is running which was forked using open.
You might find some ideas in Using Select and pipes to communicate with threads