engineering computer science MCQ #1830

What is a critical section in Operating System?

engineering computer science MCQ #1830

  1. Question 1

    Q1. What is a critical section in Operating System?

    • A) A section of code that accesses shared resources
    • B) A section of code that is executed only once
    • C) A section of code that is never executed
    • D) A section of code that is executed by multiple processes simultaneously

    Answer: A section of code that accesses shared resources

    Explanation: A critical section is a part of the code that accesses shared resources and must be executed atomically to prevent data inconsistency.