engineering computer science MCQ #1850

What is the purpose of a 'semaphore' in Operating Systems?

engineering computer science MCQ #1850

  1. Question 1

    Q1. What is the purpose of a 'semaphore' in Operating Systems?

    • A) Synchronize access to shared resources
    • B) Manage memory allocation
    • C) Handle interrupts
    • D) Control file access

    Answer: Synchronize access to shared resources

    Explanation: Semaphore is a variable that controls access to shared resources, preventing simultaneous access.