Operating System MCQs
1K+ questions with answers
How many times the following C program prints yes? main() { fork();fork();printf("yes"); }
Which of the following calls never returns an error?
A fork system call will fail if ______________
If exec is called immediately after forking ____________
If a process does not call exec after forking ____________
What is Thread cancellation?
When a web page is loading, and the user presses a button on the browser to stop loading the page?
When one thread immediately terminates the target thread, it is called ____________
When the target thread periodically checks if it should terminate and terminates itself in an orderly manner, it is called?
Cancelling a thread asynchronously ____________
Cancellation point is the point where ____________
Signals that occur at the same time, are presented to the process ____________
Which of the following is not TRUE?
Signals of a given type ____________
The three ways in which a process responds to a signal are ____________
Signals are identified by ____________
When a process blocks the receipt of certain signals?
In UNIX, the set of masked signals can be set or cleared using the ________ function.
The usefulness of signals as a general inter process communication mechanism is limited because ____________
The usual effect of abnormal termination of a program is ____________
In UNIX, the abort() function sends the ________ signal to the calling process, causing abnormal termination.
In most cases, if a process is sent a signal while it is executing a system call ____________
A process can never be sure that a signal it has sent _____________
Thread pools are useful when ____________
Instead of starting a new thread for every task to execute concurrently, the task can be passed to a ___________
Each connection arriving at multi threaded servers via network is generally ____________
What is the idea behind thread pools?
If the thread pool contains no available thread ____________
Thread pools help in ____________
The number of the threads in the pool can be decided on factors such as ____________
Because of virtual memory, the memory can be shared among ____________
_____ is the concept in which a process is copied into the main memory from the secondary memory according to the requirement.
The pager concerns with the ____________
Swap space exists in ____________
When a program tries to access a page that is mapped in address space but not loaded in physical memory, then ____________
Effective access time is directly proportional to ____________
Which algorithm chooses the page that has not been used for the longest period of time whenever the page required to be replaced?
A process is thrashing if ____________
Working set model for page replacement is based on the assumption of ____________
Virtual memory allows ____________
The instruction being executed, must be in ____________
Error handler codes, to handle unusual errors are ____________
The ability to execute a program that is only partially in memory has benefits like ____________
In virtual memory. the programmer __________ of overlays.
Virtual memory is normally implemented by ________
A swapper manipulates ___________ whereas the pager is concerned with individual _______ of a process.
Using a pager ____________
The valid – invalid bit, in this case, when valid indicates?
A page fault occurs when?
When a page fault occurs, the state of the interrupted process is ____________