0% found this document useful (0 votes)
8 views7 pages

OS ASS 1,2&3

The document outlines assignments for a Computer Science & Engineering course on Operating Systems for 2nd year, 4th semester students. It includes various questions related to processes, scheduling algorithms, process control blocks, and inter-process communication. The assignments are to be submitted between February 1, 2024, and May 25, 2024, under the supervision of Ms. Jigisha Patel.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views7 pages

OS ASS 1,2&3

The document outlines assignments for a Computer Science & Engineering course on Operating Systems for 2nd year, 4th semester students. It includes various questions related to processes, scheduling algorithms, process control blocks, and inter-process communication. The assignments are to be submitted between February 1, 2024, and May 25, 2024, under the supervision of Ms. Jigisha Patel.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

ASSIGNMENT

Date :

Department: Computer Science & Engineering

Duration/Term: 01-02-2024 to 25-05-2024 Class:2nd year Semester: 4th


Subject: Operating System Faculty Department: Computer
Subject Code: 3140702 Science & Engineering
Last Date of Assignment Submission: Assignment No.:01
Name of Faculties: Ms. Jigisha Patel

Question Description Satisfied


‘CO’ No.
What is process? Differentiate process and Program. Explain the process R,U NC209.2
creation and termination.
Differentiate process and thread. Explain classical thread model.. R,A NC209.2

Differentiate user level and kernel level thread. R,U NC209.2

What is scheduling? What is scheduler Explain the types of schedulers. R,U NC209.2
What are various criteria for a good process scheduling algorithm?

Draw and explain five state process state transition diagrams in detail R,U NC209.2

Draw and explain Seven state process state transition diagram in detail R,U NC209.2

Explain the main function of a dispatcher in brief R,U NC209.2

Explain about various fields of process control block. R,U NC209.2

Distinguish between CPU bounded, I/O bounded processes. R,U NC209.2

Explain the main function of a dispatcher in brief. R,U NC209.2

Prepared By: Verified By: Approved By:

Mr. Bhavesh D.
Ms.Jigisha Patel Dr. Piyush S. Jain
Patel HOD,
Assistant Professor, Principal, SNPIT&RC,
Computer Scienceand
Computer Science and Umrakh
Engg.
Engg.
ASSIGNMENT
Date :

Department: Computer Science & Engineering

Duration/Term: 01-02-2024 to 25-05-2024 Class:2nd year Semester: 4th


Subject: Operating System Faculty Department: Computer
Subject Code: 3140702 Science & Engineering
Last Date of Assignment Submission: Assignment No.:02
Name of Faculties: Ms. Jigisha Patel

Question Description Satisfied


‘CO’ No.
1. Consider following processes with length of CPU burst time in R,U NC209.3
milliseconds

All process arrived in order p1, p2, p3, p4 all time zero.
(1) Draw gantt charts illustrating execution of these processes for SJF and
round robin (quantum=1)
(2) Calculate waiting time for each process for each scheduling algorithm
(3) Calculate average waiting time for each scheduling algorithm
2. Explain any two preemptive scheduling algorithms in brief. What is R,A NC209.3
meant priority inversion?
3. What is the criterion used to select the time quantum in case of round- R,U NC209.3
robin scheduling algorithm? Explain it with a suitable example.
4. Solve following example by FCFS and SJF CPU scheduling R,U NC209.3

algorithm. Draw Gantt Chart and calculate Average Waiting Time


and Average Turnaround time.

5. Explain Thread Scheduling with suitable example. R,U NC209.3


R,U NC209.3
6. Define preemption and nonpreemption.

7. Explain the Priority scheduling algorithm. R,U NC209.3

8. Define the difference between preemptive and nonpreemptive R,U NC209.3


scheduling.
9. What are the disadvantages of FCFS scheduling algorithm as compared R,U NC209.3
to shortest job first (SJF) scheduling?
10.Demonstrate FIFO and Round Robin CPU scheduling algorithms with R,U NC209.3
suitable example.
11.Five batch jobs A, B, C, D and E arrive at same time. They have R,U NC209.3

estimated running times 10, 6, 3, 4 and 8 ms. For each of the following
algorithm determine mean process turnaround time. Consider process
swapping overhead is 1 ms.
1) FCFS
2) Round-Robin (Time quantum = 2 ms)
12.Five batch jobs P1, P2, P3, P4 and P5 arrive at 0, 1, 2, 3 and 4 ms. They R,U NC209.3

have estimated running times 14, 12, 8, 3 and 6 ms. Their priorities are
3, 5, 2, 1 and 4 respectively with 5 being highest priority. For each of
the following algorithm determine mean process turnaround time.
Consider process swapping overhead is 0.5 ms.
1) SJF (Non-preemptive)
2) Priority Scheduling (Preemptive)
13.For the following set of process find the avg waiting time and avg turn R,U NC209.3
around using GANTT chart for
a. FCFS b. SJF(primitive and non primitive) c. RR d.Priority e.SJRT

14.Following table gives arrival time and expected run time of five R,U NC209.3
processes.
Ignore process switching overhead. Find average turnaround time for
following scheduling algorithm. Ignore process switching overhead. Find
average turnaround time for following scheduling algorithm.
1. Round robin (quantum = 1 sec)
2. Shortest Job First.
15.Differentiate between preemptive and non-preemptive scheduling. Solve R,U NC209.3
following by SJF preemptive and non-preemptive.
Draw Gantt Chart, Average Waiting Time and Average Turnaround Time.
Which one is better as per average turnaround time?

16.Consider the following five processes with the length of the CPU burst R,U NC209.3
time in milliseconds

Processes are Assumed to have arrived at time 0. For the above set of
processes find the average waiting time and average around time for each of
the following scheduling algorithm using Gantt chart. Consider 1 is highest
priority.
1. SJF 2. Non preemptive Priority 3. RR ( Q = 2)
17.Find average waiting time for Shortest job first scheduling, and Round R,U NC209.3
robin scheduling algorithm. CPU burst time is given in millisecond and
time quantum is 4.

18.Consider the following set of processes with the length of CPU burst R,U NC209.3
time given in the milliseconds. Calculate average turnaround time and
average waiting time for First-come first served scheduling, Shortest job
first scheduling and Priority scheduling algorithm.

19.Consider the Following set of Processes , with the length of the CPU- R,U NC209.3

burst time given in milliseconds:

The processes are assumed to have arrived in the order P1, P2, P3, P4, P5 all
at time=0.

1. Draw Four Gantt charts illustrating the execution of these processes


using FCFS, SJF, non-preemptive Priority a small priority number
implies a higher priority) , and Round Robin ( quantum =1 )
scheduling.
2. What is the average waiting time of all processes for each of the
scheduling algorithms in part 1 ?
3. What is the average Turn around time of all processes for each of the
scheduling algorithms in part 1?
20. R,U NC209.3

21.For the following set of process find the avg waiting time and avg turn R,U NC209.3
around using GANTT chart a. FCFS b. SJF

Prepared By: Verified By: Approved By:

Mr. Bhavesh D.Patel


Ms.Jigisha Patel Assistant Dr. Piyush S. Jain
HOD,
Professor,Computer Principal, SNPIT&RC,
Computer Scienceand
Science and Engg. Umrakh
Engg.
ASSIGNMENT
Date :

Department: Computer Science & Engineering

Duration/Term: 01-02-2024 to 25-05-2024 Class:2nd year Semester: 4th


Subject: Operating System Faculty Department: Computer
Subject Code: 3140702 Science & Engineering
Last Date of Assignment Submission: Assignment No.:03
Name of Faculties: Ms. Jigisha Patel

Question Description Satisfied


‘CO’ No.
Define following terms: (i)Critical section (ii) Mutual exclusion (iii) Bounded R,U NC209.3
waiting
Illustrate Readers and Writers IPC problem with solution R,A NC209.3

Give the key difference between a mutex and a binary semaphore. R,U NC209.3

Explain Dining philosopher problem and its solution using semaphore. R,U NC209.3

What is semaphore? Explain its implementation as wait and signal for providing R,U NC209.3
process synchronization?

Prepared By: Approved By:

Ms. Jigisha Patel Mr. Bhavesh D. Patel


Assistant Professor, Computer HOD,
Science and Engg. Computer Science and Engg.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy