The two types of semaphores are-

OPERATING_SYSYTEMS2

Quiz
•
Computers
•
Professional Development
•
Hard
Nithya shree
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Counting and decimal semaphore
Counting and binary semaphore
Counting and mutex
None
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The main purpose of thread synchronization is to:
Ensure that only one thread can access the resource at any given time
Make sure that threads run at the same speed
Prevent threads from executing
None of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the Dining Philosophers Problem, deadlock can be avoided by:
Allowing only four philosophers to sit at the table at any time
Requiring philosophers to pick up both forks at the same time
Philosophers must request the waiter's permission to pick up forks
All of the above
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The Banker's algorithm is used for:
Detecting deadlocks
Preventing deadlocks
Memory allocation
Process scheduling
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A critical section is:
A section of code that can be executed by multiple threads simultaneously
A section of code that requires mutual exclusion in access
A section of memory allocated to the OS
None of the above
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In POSIX threads (pthreads), which function is used to initialize a mutex?
pthread_mutex_init
pthread_create
pthread_mutex_lock
pthread_join
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of a Memory Management Unit (MMU) in a computer system?
To enhance the CPU speed
To manage disk storage
To translate virtual addresses to physical addresses
To monitor system performance
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
Systems Architecture GCSE

Quiz
•
Professional Development
12 questions
Deci- Session 1- Time Machine

Quiz
•
Professional Development
15 questions
FORMATIVE ASSESSMENT 2 OOPS

Quiz
•
Professional Development
15 questions
Computer Science Primary, Secondary Memory and Data Storage

Quiz
•
Professional Development
12 questions
ITF - Quiz 3.3 - Memory and Disk Management

Quiz
•
Professional Development
10 questions
Security Issues Of Memory Management In Modern Operating Systems

Quiz
•
Professional Development
15 questions
Reentrant lock

Quiz
•
Professional Development
10 questions
DECI - Week 2 - round

Quiz
•
Professional Development
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade