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 agoIf I put the semaphore in this way:
OSSemPend(sem); cout << "Hello world" << endl; OSSemPost(sem, 0, err); does it become thread safe? Thanks