Operating System Mcqs

Page No. 14

If the semaphore value is negative ____________


aits magnitude is the number of processes waiting on that semaphore


bit is invalid


cno operation can be further performed on it until the signal operation is performed on it


dnone of the mentioned



The signal operation of the semaphore basically works on the basic _______ system call.


acontinue()


bwakeup()


cgetup()


dstart()


View Answer wakeup()

The wait operation of the semaphore basically works on the basic _______ system call.


astop()


bblock()


chold()


dwait()


View Answer block()

What is the main disadvantage of spinlocks?


athey are not sufficient for many process


bthey require busy waiting


cthey are unreliable sometimes


dthey are too complex for programmers



What are Spinlocks?


aCPU cycles wasting locks over critical sections of programs


bLocks that avoid time wastage in context switches


cLocks that work better on multiprocessor systems


dAll of the mentioned


View Answer All of the mentioned

What are the two atomic operations permissible on semaphores?


await


bstop


chold


dnone of the mentioned


View Answer wait

Semaphore is a/an _______ to solve the critical section problem.


ahardware for a system


bspecial program for a system


cinteger variable


dnone of the mentioned


View Answer integer variable

TestAndSet instruction is executed ____________


aafter a particular process


bperiodically


catomically


dnone of the mentioned


View Answer atomically

An un-interruptible unit is known as ____________


asingle


batomic


cstatic


dnone of the mentioned


View Answer atomic

Spinlocks are intended to provide __________ only.


aMutual Exclusion


bBounded Waiting


cAging


dProgress


View Answer Bounded Waiting

Goto Page No.

Page 14 of 108

Alphabetical MCQs Categories

Here below You find all kind of categories of MCQs in alphabetical order.


"Comprehensive Collection of MCQs: Alphabetically Organized by Subject"

"Discover an extensive collection of multiple-choice questions (MCQs) neatly categorized by subject from A to Z. This resource is designed for anyone eager to explore various topics in a straightforward and organized manner. Whether you're a student preparing for exams, an educator seeking supplementary materials, or simply curious about different subjects, this compilation offers a convenient way to learn and assess your knowledge. With questions arranged alphabetically, navigation is effortless, allowing you to delve into subjects of interest at your own pace. Engage, learn, and expand your understanding with this accessible and comprehensive repository of MCQs!"


BolPakistan

bolpakistan.com.pk includes Job Mcqs and Pak Mcqs is the Top Largest Mcqs Forum in World, in which you can read Mcqs of All Subjects, PPSC test preparation, FPSC, NTS and PPSC PAST PAPERS, PPSC PAST MCQS. A Collection of Repeated MCQs for JOBs seekers.

Copyright © 2024, Designed & Developed by BolPakistan