What is a critical region in concurrency control?

16 views
  • A section of code that should not be executed concurrently by multiple threads (Correct Answer)
  • A region of memory that is shared among multiple processes
  • A region of memory that should be protected by a lock
  • A region of code that is responsible for managing threads

Explanation

Answer: a. A section of code that should not be executed concurrently by multiple threads

Explanation: A critical region is a section of code that accesses shared resources and should not be executed concurrently by multiple threads. The critical region is usually protected by a lock or semaphore to ensure that only one thread can access it at a time.

Comments (0)

No comments yet. Be the first to comment!

Want to practice more?

Explore thousands of MCQs across every exam category on Exams Nepal.

Find More MCQs