1 votes 1 votes Interview question: Which of the following can be used inside Interrupt Service routine? 1. Semaphore 2. mutex 3. Both 1 and 2 4. neither 1 nor 2 Operating System interview operating-system process-synchronization + – sh!va asked Dec 26, 2016 sh!va 1.2k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes If asking to implement isr. only semaphore will do the job. http://stackoverflow.com/questions/62814/difference-between-binary-semaphore-and-mutex Tendua answered Jan 12, 2017 Tendua comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes If there is more than one interrupt in the interrupt service routine then mutex will not come into play so Semaphore will be used, to be more precise Counting semaphore Option A Mohitdas answered Nov 12, 2020 Mohitdas comment Share Follow See all 0 reply Please log in or register to add a comment.