MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

DATA STRUCTURES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which is NOT a type of queue?
A
Priority
B
Linear
C
Circular
D
Semaphore
Explanation: 

Detailed explanation-1: -A semaphore is an object with two methods Wait and Signal, a private integer counter and a private queue (of threads).

Detailed explanation-2: -A mutex is a type of semaphore that supports mutual exclusion, preventing two threads from operating simultaneously on a particular resource. In addition, it allows only one thread at a time to access the resource. Both semaphores and mutexes are used in computer programming and systems management.

Detailed explanation-3: -Overview : Semaphores are compound data types with two fields one is a Non-negative integer S.V and the second is Set of processes in a queue S.L. It is used to solve critical section problems, and by using two atomic operations, it will be solved. In this, wait and signal that is used for process synchronization.

There is 1 question to complete.