0 votes 0 votes If a system has only two processes, does it make sense to use a barrier to synchronize them? Why or why not? Operating System tanenbaum operating-system process-and-threads process-synchronization descriptive + – admin asked Oct 25, 2019 admin 1.1k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
1 votes 1 votes Answer: If a system has only two processes, then the use of a barrier is not wise. A single semaphore is more than enough in this case. On the other hand, if the program works in phases and none of the processes enters the next phase unless both get finished with the current phase. In this case, a barrier can be used more productively. `JEET answered Oct 26, 2019 `JEET comment Share Follow See 1 comment See all 1 1 comment reply Okiyitoo commented Feb 8, 2022 reply Follow Share What is a semaphore? 0 votes 0 votes Please log in or register to add a comment.