OPERATING SYSTEMS 2

OPERATING SYSTEMS 2

University

20 Qs

quiz-placeholder

Similar activities

OS - Test1

OS - Test1

University

15 Qs

Operating System Process Management

Operating System Process Management

University

20 Qs

Operating System Activity

Operating System Activity

University

20 Qs

CPU Scheduling Chapter 5

CPU Scheduling Chapter 5

University

20 Qs

OS QUIZ

OS QUIZ

University

15 Qs

Operating System Gate and placement Questions

Operating System Gate and placement Questions

University

20 Qs

OS-Process scheduling

OS-Process scheduling

University

15 Qs

Operating System : Part 1

Operating System : Part 1

University

15 Qs

OPERATING SYSTEMS 2

OPERATING SYSTEMS 2

Assessment

Quiz

Computers

University

Hard

Created by

K Lokeshnath

Used 26+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Which of the following scheduling algorithms is non-preemptive? (GATE CS 2002) 

Round Robin 

First-In First-Out 

Multilevel Queue Scheduling 

Multilevel Queue Scheduling with Feedback 

2.

MULTIPLE CHOICE QUESTION

2 mins • 2 pts

Media Image

consider the 3 processes, P1, P2 and P3 shown in the table

The completion order of the 3 processes under the policies FCFS and RRS (round robin scheduling with CPU quantum of 2 time units) are

FCFS: P1, P2, P3 RR2: P1, P2, P3

FCFS: P1, P3, P2 RR2: P1, P3, P2

FCFS: P1, P2, P3 RR2: P1, P3, P2

FCFS: P1, P3, P2 RR2: P1, P2, P3

3.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Media Image

Consider the following table of arrival time and burst time for three processes P0, P1 and P2.

The pre-emptive shortest job first scheduling algorithm is used. Scheduling is carried out only at arrival or completion of processes. What is the average waiting time for the three processes?

5.0 ms

4.33 ms

6.33 ms

7.33 ms

4.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Which of the following statements are true? (GATE CS 2010)
I. Shortest remaining time first scheduling may cause starvation
II. Preemptive scheduling may cause starvation
III. Round robin is better than FCFS in terms of response time

I only

I and III only

II and III only

I, II and III

5.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Media Image

1) In the following process state transition diagram for a uniprocessor system, assume that there are always some processes in the ready state: Now consider the following statements:

I. If a process makes a transition D, it would result in another process making transition A immediately.
II. A process P2 in blocked state can make transition E while another process P1 is in running state.
III. The OS uses preemptive scheduling.
IV. The OS uses non-preemptive scheduling.

Which of the above statements are TRUE?

I and II

I and III

II and III

II and IV

6.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Media Image

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

What is the total waiting time for process P2?

5

15

40

55

7.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Consider three CPU-intensive processes, which require 10, 20 and 30 time units and arrive at times 0, 2 and 6, respectively. How many context switches are needed if the operating system implements a shortest remaining time first scheduling algorithm? Do not count the context switches at time zero and at the end.

1

2

3

4

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?