__ is a segment of code that accesses a shared resource like data structure or device that must not be concurrently accessed by more than one thread of execution.

(A) Pipelining
(B) Critical Section
(C) Context switching
(D) Multithreading

Use of semaphore create a problem of busy waiting this wastes CPU cycles that some other process may be able to use productively. This type of semaphore is also called?

(A) Spinlock
(B) Semaphore S
(C) Locking Semaphore
(D) Mutex

error: Content is protected !!