Professional KnowledgeHardIBPS SO IT
Producer-consumer with a bounded buffer of N slots uses semaphores. Initial values are:
- A. empty=0, full=N, mutex=1
- B. empty=N, full=0, mutex=1
- C. empty=N, full=N, mutex=0
- D. empty=1, full=0, mutex=N
Correct answer: B. empty=N, full=0, mutex=1
empty counts free slots (N), full counts items (0), mutex guards the buffer.
Practise more IT Officer Professional Knowledge (IBPS SO) questionsIT Officer Professional Knowledge (IBPS SO): notes and key points
More IT Officer Professional Knowledge (IBPS SO) questions
- Race condition occurs when:
- Two-level paging for a 32-bit address with 4 KB pages: 10 bits outer, 10 bits inner and 12 bit offset. Entries in each inner table (4…
- Memory access 100 ns, TLB lookup 10 ns, hit ratio 90%, two-level paging. EMAT is:
- Reference string 7,0,1,2,0,3,0,4,2,3,0,3,2 with 3 frames and FIFO. Number of page faults:
- Belady's anomaly can occur in:
- The working-set model uses a window of delta references to: