Operating System Mcqs

Page No. 62

If the thread pool contains no available thread ____________


athe server runs a new process


bthe server goes to another thread pool


cthe server demands for a new pool creation


dthe server waits until one becomes free



What is the idea behind thread pools?


aa number of threads are created at process startup and placed in a pool where they sit and wait for work


bwhen a process begins, a pool of threads is chosen from the many existing and each thread is allotted equal amount of work


call threads in a pool distribute the task equally among themselves


dnone of the mentioned



Each connection arriving at multi threaded servers via network is generally ____________


ais directly put into the blocking queue


bis wrapped as a task and passed on to a thread pool


cis kept in a normal queue and then sent to the blocking queue from where it is dequeued


dnone of the mentioned



Instead of starting a new thread for every task to execute concurrently, the task can be passed to a ___________


aprocess


bthread pool


cthread queue


dnone of the mentioned


View Answer thread pool

Thread pools are useful when ____________


awhen we need to limit the number of threads running in the application at the same time


bwhen we need to limit the number of threads running in the application as a whole


cwhen we need to arrange the ordering of threads


dnone of the mentioned



Working set model for page replacement is based on the assumption of ____________


amodularity


blocality


cglobalization


drandom access


View Answer locality

Which algorithm chooses the page that has not been used for the longest period of time whenever the page required to be replaced?


afirst in first out algorithm


badditional reference bit algorithm


cleast recently used algorithm


dcounting based page replacement algorithm



In FIFO page replacement algorithm, when a page must be replaced ____________


aoldest page is chosen


bnewest page is chosen


crandom page is chosen


dnone of the mentioned


View Answer oldest page is chosen

Effective access time is directly proportional to ____________


apage-fault rate


bhit ratio


cmemory access time


dnone of the mentioned


View Answer page-fault rate

When a program tries to access a page that is mapped in address space but not loaded in physical memory, then ____________


asegmentation fault occurs


bfatal error occurs


cpage fault occurs


dno error occurs


View Answer page fault occurs

Goto Page No.

Page 62 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