You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The program sometimes hangs when I try to read from stdin.
I'm not fully familiar with the code, but I think the problem is that this sem_wait gets called multiple times because it's in a loop, but the semaphore only gets unlocked once. (In a particular run, that sem_wait was called two times but, this sem_poll only got called once.)
The text was updated successfully, but these errors were encountered:
gets called multiple times because it's in a loop, but the semaphore only
gets unlocked once. (In a particular run, that sem_wait was called 2
times but, this sem_poll
The program sometimes hangs when I try to read from stdin.
I'm not fully familiar with the code, but I think the problem is that this
sem_wait
gets called multiple times because it's in a loop, but the semaphore only gets unlocked once. (In a particular run, thatsem_wait
was called two times but, thissem_poll
only got called once.)The text was updated successfully, but these errors were encountered: