Semaphores 3 process
i'm new in a programming with C. I try to understand the semaphores. I need some help. I have to create a 3 process program but i don't understand how to do this in C. The problem is this:
- create the first process
- the second process start every times that the first one finish
- every five times that the first(and than the second) finish start the third process
I think that the code will be something like this:
If someone can write the pseudo-code or the code simple to understand, help me a lot!