title: Can a critical section be interrupted in OS? What are the effects if implemented in user section or kernel code?
body: <p>Recently I was asked this question in an interview about the critical section effect when interrupted by an interrupt if we implemented it through mutex. Is there are any effect if critical section implemented in user code or in kernel code.</p>