Top 550+ Solved Operating System (OS) MCQ Questions Answer

From 376 to 390 of 659

Q. Which of the following calls never returns an error?

a. getpid

b. fork

c. ioctl

d. open

  • a. getpid

Q. A fork system call will fail if

a. the previously executed statement is also a fork call

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

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

d. all of the mentioned

  • b. the limit on the maximum number of processes in the system would be executed

Q. If a thread invokes the exec system call

a. only the exec executes as a separate process

b. the program specified in the parameter to exec will replace the entire process

c. the exec is ignored as it is invoked by a thread

d. none of the mentioned

  • b. the program specified in the parameter to exec will replace the entire process

Q. If exec is called immediately after forking

a. the program specified in the parameter to exec will replace the entire process

b. all the threads will be duplicated

c. all the threads may be duplicated

d. none of the mentioned

  • a. the program specified in the parameter to exec will replace the entire process

Q. If a process does not call exec after forking

a. the program specified in the parameter to exec will replace the entire process

b. all the threads should be duplicated

c. all the threads should not be duplicated

d. none of the mentioned

  • b. all the threads should be duplicated

Q. What is Thread cancellation?

a. the task of destroying the thread once its work is done

b. the task of removing a thread once its work is done

c. the task of terminating a thread before it has completed

d. none of the mentioned

  • c. the task of terminating a thread before it has completed

Q. When a web page is loading, and the user presses a button on the browser to stop loading the page?

a. the thread loading the page continues with the loading

b. the thread loading the page does not stop but continues with another task

c. the thread loading the page is paused

d. the thread loading the page is cancelled

  • d. the thread loading the page is cancelled

Q. When one thread immediately terminates the target thread, it is called                          

a. asynchronous cancellation

b. systematic cancellation

c. sudden termination

d. deferred cancellation

  • a. asynchronous cancellation

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

a. asynchronous cancellation

b. systematic cancellation

c. sudden termination

d. deferred cancellation

  • d. deferred cancellation

Q. Cancelling a thread asynchronously

a. frees all the resources properly

b. may not free each resource

c. spoils the process execution

d. none of the mentioned

  • b. may not free each resource

Q. Cancellation point is the point where

a. the thread can be cancelled – safely or otherwise doesn’t matter

b. the thread can be cancelled safely

c. the whole process can be cancelled safely

d. none of the mentioned

  • b. the thread can be cancelled safely

Q. Signals that occur at the same time, are presented to the process                          

a. one at a time, in a particular order

b. one at a time, in no particular order

c. all at a time

d. none of the mentioned

  • b. one at a time, in no particular order
Subscribe Now

Get All Updates & News