Home / CSE MCQs / OS MCQs :: Semaphores - Operating System

CSE MCQs :: OS MCQs

  1. An un-interruptible unit is known as :
  2. A.
    single
    B.
    atomic
    C.
    static
    D.
    None of these

  3. The TestAndSet instruction is executed :
  4. A.
    after a particular process
    B.
    periodically
    C.
    atomically
    D.
    None of these

  5. Semaphore is a/an _______ to solve the critical section problem.
  6. A.
    hardware for a system
    B.
    special program for a system
    C.
    integer variable
    D.
    None of these

  7. Spinlocks are :
  8. A.
    CPU cycles wasting locks over critical sections of programs
    B.
    locks that avoid time wastage in context switches
    C.
    locks that work better on multiprocessor systems
    D.
    All of these

  9. The main disadvantage of spinlocks is that :
  10. A.
    they are not sufficient for many process
    B.
    they require busy waiting
    C.
    they are unreliable sometimes
    D.
    they are too complex for programmers