Forum Discussion
Altera_Forum
Honored Contributor
15 years agoCrash and semaphores
Hi, when I make three tasks synchronized by semaphores (the tasks do nothing, they only make a Post and then a Pend to pass the control each other), after a number of iterations (this number i...
Altera_Forum
Honored Contributor
15 years agoYes, as long as you do that in every thread that uses the standard output, and that you use the same semaphore on each, obviously.
I re-read your code and I'm wondering something... where do you post your semaphore sem_sync0 ? What are you trying to achieve in this code?