is there any way to synchronize two processes after fork() command.
if i had deal with threads i know i can use pthread_mutex to make them work one after another.

can i do so with processes ?

Try looking at sem_init ,
I think it seems to be what you are looking for.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.