1) What is semaphore and when will you use it?
https://stackoverflow.com/questions/34519/what-is-a-semaphore
2) What is paging in OS?
3) What is interlock and when it is used?
4) What is critical section and when it is needed?
A CRITICAL_SECTION is a synchronization primitive that can protect longer sections. It really does a lock and competing threads will be forced to wait until a thread releases ownership of the critical section.
Critical sections are OS primitives, but they are limited to a single process. Their big brother of a critical section under Windows is a Mutex, which can be used for cross-process synchronization.
5) What is dead lock and when it will occur and how do you avoid it?
https://stackoverflow.com/questions/34519/what-is-a-semaphore
2) What is paging in OS?
3) What is interlock and when it is used?
4) What is critical section and when it is needed?
A CRITICAL_SECTION is a synchronization primitive that can protect longer sections. It really does a lock and competing threads will be forced to wait until a thread releases ownership of the critical section.
Critical sections are OS primitives, but they are limited to a single process. Their big brother of a critical section under Windows is a Mutex, which can be used for cross-process synchronization.
5) What is dead lock and when it will occur and how do you avoid it?
No comments:
Post a Comment