github

Made bySaurav Hathi

CSE - Mock Test - 08

Q1:

Consider the following statements about user level threads and kernel level threads. Which one of the following statement is FALSE?

Tags:
Section:
Operating System
Options:
Q2:

The Process Control Block is:

Tags:
Section:
Operating System
Options:
Q3:

The time required to create a new thread in an existing process is

Tags:
Section:
Operating System
Options:
Q4:

The register context and stacks of a thread are deallocated when the thread

Tags:
Section:
Operating System
Options:
Q5:

A process stack does not contain

Tags:
Section:
Operating System
Options:
Q6:

Consider a system having ‘m’ resources of the same type. These resources are shared by three processes P1, P2and P3 which have peak demands of 2, 5 and 7 resources respectively. For what value of ‘m’ deadlock will not occur?

Tags:
Section:
Operating System
Options:
Q7:

Which of the following is NOT true of deadlock prevention and deadlock avoidance schemes?

Tags:
Section:
Operating System
Options:
Q8:

An operating system implements a policy that requires a process to release all resources before making a request for another resource. Select the TRUE statement from the following:

Tags:
Section:
Operating System
Options:
Q9:

What is the minimum number of resources required to ensure that deadlock will never occur, if there are currently three processes P1, P2 and P3 running in a system whose maximum demand for the resources of same type are 3, 4, and 5 respectively.

Tags:
Section:
Operating System
Options:
Q10:

Let m[0]…m[4] be mutexes (binary semaphores) and P[0] …. P[4] be processes.

Suppose each process P[i] executes the following:

  wait (m[i]); wait(m[(i+1) mode 4]); ------ release (m[i]); release (m[(i+1)mod 4]);

This could cause:

Tags:
Section:
Operating System
Options:
Q11:

Which of the following scheduling algorithms is non-preemptive?

Tags:
Section:
Operating System
Options:
Q12:

An operating system uses shortest remaining time first scheduling algorithm for pre-emptive scheduling of processes. Consider the following set of processes with their arrival times and CPU burst times (in milliseconds):

Process

Arrival Time

Burst Time

P1

0

12

P2

2

4

P3

3

6

P4

8

5

The average waiting time (in milliseconds) of the processes is _________.

Tags:
Section:
Operating System
Options:
Q13:

Four jobs to be executed on a single processor system arrive at time 0 in the order A, B, C, D. Their burst CPU time requirements are 4, 1, 8, 1 time units respectively. The completion time of A under round robin scheduling with time slice of one time unit is

Tags:
Section:
Operating System
Options:
Q14:

An operating system uses Shortest Remaining Time first (SRT) process scheduling algorithm. Consider the arrival times and execution times for the following processes:

Process

Execution time

Arrival time

P1

20

0

P2

25

15

P3

10

30

P4

15

45

What is the total waiting time for process P2?

Tags:
Section:
Operating System
Options:
Q15:

The most optimal scheduling algorithm is :

Tags:
Section:
Operating System
Options:
Q16:

Assume every process requires 3 seconds of service time in a system with single processor. If new processes are arriving at the rate of 10 processes per minute, then estimate the fraction of time CPU is busy in system?

Tags:
Section:
Operating System
Options:
Q17:

What is interprocess communication?

Tags:
Section:
Operating System
Options:
Q18:

A counting semaphore was initialised to 7. Then 20 P (wait) operations and x V (signal) operations were completed on this semaphore. If the final value of semaphore is 5, then the value x will be

Tags:
Section:
Operating System
Options:
Q19:

A process executes the code

fork();

fork();

fork();

The total number of child processes created is

Tags:
Section:
Operating System
Options:
Q20:

A critical region

Tags:
Section:
Operating System
Options: