Operating System

Questions on Process Management

15 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which of the following is FALSE regarding Perterson's solution to the critical section problem?

  1. Peterson's solution works for an arbitary number of processes.
  2. Peterson's solution has a busy wait loop.
  3. Peterson's solution is tricky to code.
  4. All of these
  5. None of these
Question 2 Multiple Choice (Single Answer)

If the operating system assigns very large quantum time, then it depicts the working as ___________ ,and if the operating system assigns very small quantum time, then ___________ will increase.

Consider that an Real Time operating system is using Round-Robin scheduling. Round-Robin scheduling uses a fixed quantum time for scheduling. 

  1. SJF and overhead
  2. FCFS and average turn around time
  3. FCFS and CPU overhead
  4. FCFS and average response time
  5. None of these
Question 3 Multiple Choice (Single Answer)

Which of the following do not have kernel intervention?

  1. Shared memory
  2. Message passing model
  3. Both (1) and (2)
  4. All of these
  5. None of these
Question 4 Multiple Choice (Single Answer)

Which of the following is/are the properties of Windows NT?

  1. Security model is based on user accounts
  2. Uses NTFS file system
  3. Server operating system
  4. All of the above
  5. None of these
Question 5 Multiple Choice (Single Answer)

Which of the following is/are true with respect to the indirect communication mechanism between cooperating processes?

  1. Processes communicate via mailboxes or ports.
  2. More than one link is possible between a pair of communicating processes.
  3. If a mailbox is owned by a process, then that process can only receive messages through that mail box.
  4. All of these
  5. None of these
Question 6 Multiple Choice (Single Answer)

What is the shortest form of interprocess communication in UNIX?

Consider the following I/O scenario on a single-user PC: A mouse use with a graphical user interface

  1. Semaphore
  2. Pipe
  3. Signal
  4. All of these
  5. None of these
Question 7 Multiple Choice (Single Answer)

Which of the following scheduling mechanisms controls the degree of multiprogramming?

  1. Long-term scheduling
  2. Medium-term scheduling
  3. Short-term scheduling
  4. All of these
  5. None of these
Question 8 Multiple Choice (Single Answer)

A system has 4 processes sharing 5 resources. If each process needs a maximum of 3 units, then

  1. deadlock can never occur
  2. deadlock may occur
  3. deadlock has to occur
  4. None of the above
  5. None of these
Question 9 Multiple Choice (Single Answer)

Mutual Exclusion can be provided by ______.

  1. locks
  2. semaphores
  3. both (A) and (B)
  4. mutex
  5. none of these
Question 10 Multiple Choice (Single Answer)

Context switch occurs because of

  1. system calls
  2. exceptions
  3. interrupts
  4. all of these
  5. none of these
Question 11 Multiple Choice (Single Answer)

The context switch from process A to process B will be executed

  1. in context of A
  2. in context of B
  3. both A and B
  4. neither A nor B
  5. none of these
Question 12 Multiple Choice (Single Answer)

Among the following processes, which will enter the deadlock state?

Consider a system with three processes A, B, C and total resources are 15.
Process A has 4 tape drives but requires 14 tape drives.
Process B has 5 tape drives but reuqires 9 tape drives.
Process C has 3 tape drives but requires 7 tape drives.
 

  1. A, B
  2. A, B, C
  3. A, C
  4. None of these
  5. None
Question 13 Multiple Choice (Single Answer)

The major problems with semaphore involves

  1. race condition
  2. deadlock avoidance
  3. both 1 and 2
  4. all of these
  5. none of these
Question 14 Multiple Choice (Single Answer)

Which of the following signals cannot be ignored, blocked or specify a signal handler by user?

  1. SIGCHLD
  2. SIGSTOP
  3. SIGUSR1
  4. SIGUSR2
  5. None of these
Question 15 Multiple Choice (Single Answer)

When a process is running, which of the following will not be able to interrupt it?

Scheduling of process from Ready queue to Running is done by short term scheduler.

  1. Device
  2. Timer
  3. Scheduled process
  4. Power failure
  5. None of these