Operating System Mcqs

Page No. 59

If exec is called immediately after forking ____________


athe program specified in the parameter to exec will replace the entire process


ball the threads will be duplicated


call the threads may be duplicated


dnone of the mentioned



If a thread invokes the exec system call ____________


aonly the exec executes as a separate process


bthe program specified in the parameter to exec will replace the entire process


cthe exec is ignored as it is invoked by a thread


dnone of the mentioned View Answer



A fork system call will fail if ______________


athe previously executed statement is also a fork call


bthe limit on the maximum number of processes in the system would be executed


cthe limit on the minimum number of processes that can be under execution by a single user would be executed


dall of the mentioned



Which of the following calls never returns an error?


agetpid


bfork


cioctl


dopen


View Answer getpid

Which of the following system calls transforms executable binary file into a process?


afork


bexec


cioctl


dlongjmp


View Answer exec

Which of the following system calls does not return control to the calling point, on termination?


afork


bexec


cioctl


dlongjmp


View Answer exec

If multiple threads are concurrently searching through a database and one thread returns the result then the remaining threads must be ____________


acontinued


bcancelled


cprotected


dnone of the mentioned


View Answer cancelled

Cancellation point is the point where ____________


athe thread can be cancelled – safely or otherwise doesn’t matter


bthe thread can be cancelled safely


cthe whole process can be cancelled safely


dnone of the mentioned



Cancelling a thread asynchronously ____________


afrees all the resources properly


bmay not free each resource


cspoils the process execution


dnone of the mentioned



When the target thread periodically checks if it should terminate and terminates itself in an orderly manner, it is called?


aAsynchronous cancellation


bSystematic cancellation


cSudden Termination


dDeferred cancellation


View Answer Deferred cancellation

Goto Page No.

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