Os Pyq
Os Pyq
36
Total No. of Questions : 6]
SEAT No. : OR
ER
ER
P5386 [Total No. of Pages : 2 Q4) a) For the table given below, calculate average waiting time and average
RV
RV
turnaround time, also draw a Gantt Chart illustrating the process execution
T.E./Insem.-644 using following scheduling algorithms. [8]
SE
SE
T.E. (Information Technology) i) FCFS ii) SJF (preemptive)
:50
:50
OPERATING SYSTEM (Semester - I)
1
:08
:08
/20 309
/20 309
(2015 Pattern) Process Arrival Time Burst Time
11
11
Time :1 hour] [Max. Marks :30 P1 0 9
11 P01
11 P01
17
17
Instructions to the candidates:
P2 1 1
1) Answer Q.1 or Q.2, Q.3or Q.4, Q.5 or Q.6.
6.2 EG
6.2 EG
/08
/08
2) Neat diagrams must be drawn wherever necessary. P3 2 7
6
3) Figures to the right indicate full marks. P4 3 1
R3
R3
.21 C
.21 C
38
38
4) Assume suitable data, if necessary.
VE
VE
P5 4 6
ER
ER
Q1) a) State and explain different services provided by an Operating System.[6] b) Define Context Switch. [2]
S
b) Explain the following shell commands with example. [4]
48
48
:50
:50
Q5) a) Consider the following snapshot of a system: [6]
1
1
.2
.2
:08
:08
i) Chmod ii) Grep iii) Cat iv) Sort
/20 309
/20 309
49
49
Allocation Maximum Available
11
11
OR A B C D A B C D A B C D
11 P01
11 P01
17
17
Q2) a) Explain the concept of virtual machine with its benefits. [4] P0 0 0 1 2 0 0 1 2 1 5 2 0
b) Write a shell script for sorting a given list of numbers using any sorting
6.2 EG
6.2 EG
/08
/08
P1 1 0 0 0 1 7 5 0
strategy. [6]
36
36
P2 1 3 5 4 2 3 5 6
C
C
ER
ER
38
38
P3 0 6 3 2 0 6 5 2
RV
RV
Q3) a) For the table given below calculate average waiting time and average P4 0 0 1 4 0 6 5 6
SE
SE
turnaround time and draw a Gantt Chart illustrating the process execution
1
1
8.2
8.2
using following scheduling algorithms. [8] Answer the following questions using banker's algorithm.
0
0
.24
.24
8:5
8:5
i) What are the contents of Need matrix?
71 1
71 1
i) RR (Time slice-2units) ii) SJF (non-preemptive)
9
9
49
49
1:0
1:0
ii) Is the system in a safe state?
8/2 30
8/2 30
Process Arrival Time Burst Time
b) Explain busy waiting with appropriate example? [4]
1
1
P1 0 8
01
01
P0
P0
OR
P2 1 5
G
G
P3 3 3 Q6) a) Write a pseudo code for producer-consumer problem using semaphores.[6]
1/0
1/0
CE
CE
b) Explain the necessary and sufficient conditions for the occurrence of a
81
81
P4 4 1
deadlock. [4]
.23
.23
P5 6 4
16
16
b) Differentiate between process and thread. [2] M M M
8.2
8.2
.24
.24
P.T.O. T.E./Insem.-644 2
49
49
JOIN @PuneEngineers | Telegram JOIN @PuneEngineers | Telegram
Total No. of Questions :6] SEAT No. : b) Suppose that a process spawns another process using fork system call.[2]
P5699 [Total No. of Pages :2 What if the parent process completes the execution before child process?
TE/INSEM./OCT.-145 What if the child process completes the execution before parent process?
7
7
6:0
6:0
0:5
Q4) a) For the table given below, calculate average waiting time and average
OPERATING SYSTEM
81
81
1
turnaround time and draw a Gantt Chart illustrating the process execution
09
09
01
8/2
8/2
3
01
0/0
GP
81
81
.23
CE
CE
16
8.2
P3 2 7 1
4) Assume suitable data, if necessary.
:07
:07
.24
.24
P4 3 1 5
:56
:56
Q1) a) What is operating system? State and explain the basic functions of
49
49
P5 4 6 4
10
10
1
18
18
09
09
/20
/08
.23 01
.23 01
10
GP
GP
8
Q2) a) Differentiate between monolithic and microkernel architectures. [4] Q5) a) Explain the following terms: [6]
CE
CE
16
16
b) Write a shell script to check if given string is a palindrome or not. [6] i) Mutual Exclusion
8.2
8.2
ii) Synchronization
:07
:07
Q3) a) For the table given below, calculate average waiting time and average
.24
.24
:56
49
49
10
1
18
18
09
/20
/20
OR
13
13
/08
P0
P1 0 3 5
10
10
semaphore. [6]
G
G
8
P2 2 6 2
.23
.23
CE
CE
16
deadlock. [4]
8.2
8.2
P4 6 5 3
.24
.24
P5 8 2 1
49
49
8
23
23
[2]
P75 [Total No. of Pages :3
i c-
i c-
Oct./ TE/ Insem. - 194 OR
t at
t at
T.E. (Information Technology) Q4) a) For the table given below calculate the average waiting time and average
s
:11
:11
OPERATING SYSTEM turn around time and draw a Gantt Chart illustrating the process execution
1
:37
:37
using following scheduling algorithms.
/20 09
/20 09
(2015 Course) (Semester - I) (314444)
10
10
3 i) RR (Time slice - 2 units) [8]
3
19
19
22 01
22 01
Time : 1 Hour] [Max. Marks :30 ii) FCFS
Instructions to the candidates:
P
P
Process Arrival Time Burst time
/08
/08
6.2 EG
6.2 EG
1) Answers Q.1 or Q.2, Q.3 or Q.4, Q.5 or Q.6.
2) Neat diagrams must be drawn wherever necessary. P1 0 4
8
C
C
23
23
38
38
3) Figures to the right side indicate full marks. P2 1 5
ic-
ic-
4) Assume suitable data, if necessary.
tat
tat
1
1
P3 2 2
8.2
8.2
1s
1s
P4 3 1
.24
.24
:1
:1
Q1) a) Write C program for fork system call in which main program accept the
1
1
:37
:37
49
49
array, parent process sort and display the element in ascending order
/20 09
/20 09
P5 4 6
10
10
whereas child process sort and print elements in descending order by
3
3
using any sorting strategy. [6] P6 6 3
19
19
22 01
22 01
b) Explain the difference between the monolithic kernel and a microkernel b) Differentiate between thread and process. [2]
P
P
with advantages and disadvantages.
/08
/08
[4]
G
G
OR
CE
CE
8
8
Q5) a) Consider the following snapshot of a system: [6]
-23
-23
38
38
Q2) a) Explain the concept of virtual machine with its implementation and benefits.
.2
.2
Also explain example of virtual machine. [6]
tic
tic
Allocation Maximum Available
16
16
sta
sta
b) State and explain different services provided by an operating sytem. [4]
.2
.2
A B C D A B C D A B C D
48
48
1
1
7:1
7:1
.2
.2
P0 0 0 1 2 0 0 1 2 1 5 2 0
01 91
01 91
Q3) a) For the table given below calculate the average waiting time and average
49
49
0:3
0:3
turn around time and draw a Gantt Chart illustrating the process execution
0
0
P1 1 0 0 0 1 7 5 0
91
91
using following scheduling algorithms. [8]
2/0 13
2/0 13
i) RR (Time slice -2 units) P2 1 3 5 4 2 3 5 6
8 2 P0
8 2 P0
8/2
8/2
ii) SJF (non-preemptive) P3 0 6 3 2 0 6 5 2
G
G
Process Arrival Time Burst time
CE
CE
P4 0 0 1 4 0 6 5 6
P1 0 10
.23
.23
Answer the following question using banker’s algorithm.
P2 1 06
16
16
P3 2 12 i) What are the contents of need matrix?
8.2
8.2
P4 3 15 ii) Is system in a safe state?
.24
.24
TE/ Insem. - 194 1 P.T.O. TE/ Insem. - 194 2
49
49
JOIN @PuneEngineers | Telegram JOIN @PuneEngineers | Telegram
OR
tic
sta
8/
Unit-1
1 Define Operating system and explain services of OS.
CE
82
tat
1s
7:1
0:3
38
tat
1s
7:1
0:3
09
18 Consider following set of processes executing on a uniprocessor system. 20 Consider following set of processes executing on a uniprocessor system.
Process AT BT Process BT
P1 0 16 P1 6
P2 0 10 P2 5
P3 6 4 P3 4
P4 7 6 P4 2
P5 8 10 P5 1
Draw a Gantt chart and calculate average turnaround time and average waiting time for following Draw a Gantt chart and calculate average turnaround time and average waiting time for following
CPU scheduling algorithm. CPU scheduling algorithm.
1.FCFS 2.Round Robin(Time Quantum=5) 1.FCFS
19 Consider following set of processes executing on a uniprocessor system. 2.SJF-Non Preemptive
Process AT BT 3.Round Robin(Time Slice=2)
P1 0 3 21 Consider following jobs to be executed on a uniprocessor system.
P2 2 6 Job AT BT
P3 4 4 P1 0 15
P4 7 2 P2 2 11
Draw a Gantt chart and calculate average turnaround time and average waiting time for following P3 3 10
CPU scheduling algorithm.
P4 6 6
1.SJF-Non Preemptive
P5 10 1
2.SJF-Preemptive
Draw a Gantt chart and calculate average turnaround time and average waiting time for following
CPU scheduling algorithm.
1.SJF-Non Preemptive
2.SJF-Preemptive
UNIT-3
1 Explain following terms: Race Condition, Critical Section, and Mutual Exclusion.
2 Why there is need of synchronization? What is critical section problem?
3 Which conditions must three requirements for critical section problem.
4 Explain Peterson’s solution for two process.
5 Short note on Locks and Test and Set, swap instruction.
6 Define Semaphore and its use.
7 Define deadlock, explain necessary conditions to occur deadlock.
JOIN @PuneEngineers | Telegram
Total No. of Questions : 4] SEAT No. :
8
23
23
Find Average Turnaround Time & Average Waiting Time for SJF
P8578 Oct-22 /TE/Insem-558
[Total No. of Pages : 2
i c-
i c-
(Preemptive)& Round Robin (Time Quantum=2) scheduling algorithms
t at
t at
T.E. (Information Technology) with the help of Gantt chart
s
OPERATING SYSTEMS
:31
:31
(2019 Pattern) (Semester-I) (314442) b) With the help of neat, explain in detail process state transition diagram
1
:55
:55
with two suspend states. [7]
/20 09
/20 09
10
10
Time : 1 Hour] 3 [Max. Marks : 30
3
Instructions to the candidates: OR
22
22
04 01
04 01
1) Attempt Q1 or Q2, Q3 or Q4.
2) Assume suitable data if necessary.
P
P
/10
/10
Q4) a) Discuss with the help of neat diagram different thread models. [5]
6.2 EG
6.2 EG
3) Neat diagrams must be drawn wherever necessary.
4) Figures to the right side indicate full marks. b) List and explain the CPU scheduling criteria. [5]
8
C
C
23
23
38
38
Q1) a) Explain the role operating system as resource manager. [5] c) Explain with the help of neat diagram the process of context switching,
ic-
ic-
also explain how program counter plays its role in context switching.
tat
tat
b) Give the significance of following shell commands with example: is, uniq,
1
1
[5]
8.2
8.2
1s
1s
tail, touch grep. [5]
.24
.24
:3
:3
1
1
c) Describe the differences between a monolithic kernel and a microkernel.
:55
:55
49
49
/20 09
/20 09
[5]
10
10
3
3
22
22
04 01
04 01
OR
P
P
/10
/10
G
G
Q2) a) What is an operating system? List and explain services provided by the
CE
CE
operating system. [5]
8
-23
-23
38
38
b) Write a shell script to check if the given string is palindrome or not. [5]
.2
.2
tic
tic
16
16
sta
sta
c) Explain about the concept of virtual machines and its advantages. [5]
.2
.2
48
48
1
1
5:3
5:3
.2
.2
02 91
02 91
Q3) a) Consider the Set of Processes with Arrival Time, Burst Time & Priority
49
49
0:5
0:5
[8]
0
0
21
21
4/1 13
4/1 13
Process Arrival Time Burst Time
8 0 P0
8 0 P0
0/2
0/2
P1 7 5
G
G
P2 3 4
CE
CE
P3 10 3
.23
.23
16
16
P4 0 8
8.2
8.2
P5 12 6
.24
.24
49
49
TE/Insem/558 2
P.T.O.
b) Consider the following set of processes with the length of the CPU burst
-23
-23
tic
[6187]-458
sta
sta
:22
OPERATING SYSTEMS P1 0 3 2
91
91
:47
:47
10
0
P2 1 6 1
5/0 13
5/0 13
23
23
20
0
.23 GP
9/
9/
CE
P4 6 2 4
80
80
8
23
ic-
16
16
tat
tat
Draw the gantt charts illustrating the execution of these processes using
8.2
8.2
2s
2s
Q1) a) Describe the concepts of virtual machines with its implementation and priority (non premptive) and SJF (premptive) algorithms. Calculate average
.24
.24
7:2
7:2
benefits. Brief the example of virtual machine. [7] waiting time and average turnaround time. [8]
1
1
49
49
0:4
0:4
09
09
31
5/0 13
5/0 13
OR
02
02
8 0 P0
8 0 P0
9/2
9/2
OR
G
Q4) a) Differentiate between user level threads and Kernel level threads. [5]
CE
CE
38
38
Q2) a) Explain the following operating systems [5] b) Why PCB is required? Explain the elements of PCB. [5]
c-2
c-2
.23
.23
i
i
16
16
tat
i) Batch OS
8.2
8.2
2s
2s
.24
.24
7:2
1
1
49
49
0:4
0:4
09
09
31
5/0 13
13
02
8 0 P0
P0
9/2
9/2
G
5/0
CE
CE
80
.23
.23
Q3) a) Enlist different process states. Draw and explain process state transition
16
16
diagram. [7]
8.2
8.2
.24
.24
49
49
P.T.O. [6187]-458 2