Course-Assignment-CSC-307-A-SP-24-1
Course-Assignment-CSC-307-A-SP-24-1
Alimullah Miyan
Instructions: (1) Answer all the questions. (2) Marks allocated are indicated in the right margin.
(3) Parts of each question must be answered consecutively. (4) Full task should be
Hand Written. (5) Hand write should be clean and readable. (6) Give a computer
compose front page. (7) Write your findings in the assignment. Coping for others’ is
totally prohibited. Result of plagiarism is directly F grade.
1 Consider a system with three I/O devices: a printer, a disk, and a CO C2 [10]
. communications line, with increasing priorities of 2, 4, and 5, respectively. 1
PO1
A user program begins at t = 0, a printer interrupt occurs at t = 5, a
communications interrupt occurs at t = 10 while the printer Interrupt
Service Routine (ISR) is still executing, and a disk interrupt occurs at t =
15 while the communication ISR is executing. Show a possible time
sequence by using priority-based multiple interrupts approach.
Page 1 of 3
Founded 1991 by Md. Alimullah Miyan
3 CO C3 [20]
. 3
PO2
5 Assume a machine in which 4 page frames are available, and in which memory is CO C3 [20]
. initially empty. Consider the following reference string of memory accesses to 2
pages: 1, 2, 3, 4, 1, 2, 5, 1, 2, 3, 4, 5 PO1
How many page faults will occur with the following replacement algorithms? Do
not count the initial 4 page faults to bring pages 1 to 4 in memory.
Briefly explain your answer.
a) OPT
b) LRU
c) FIFO
d) MRU
6 Consider the following set of processes, with the length of the CPU burst given CO C3 [20]
. in milliseconds. 3
PO2
PNO Burst Time
P1 10
P2 1
P3 2
P4 1
P5 5
The processes are assumed to have arrived in the order P1, P2, P3, P4, and
P5 all at time 0.
a) Draw four Gantt charts that illustrate the execution of these processes using
Page 2 of 3
Founded 1991 by Md. Alimullah Miyan
the following scheduling algorithms: FCFS, SJN, SRTF and RR (quantum =1).
b) What is the average turnaround time of each process for each of the
scheduling algorithms in part a?
c) What is the average waiting time of each process for each of the scheduling
algorithms in part a?
d) Which of the algorithms give result in the minimum average waiting
time?
Course Outcomes:
CO1: Explain the concept, role, and structural design of operating system.
CO2: Apply mechanisms to solve problems related to task-processing, memory, I/O and file
management.
CO3: Evaluate the performance of different algorithms used in operating systems.
Program Outcomes:
PO1. Engineering Knowledge An ability to apply knowledge of computing, mathematics, science
and engineering fundamentals to the solution of complex engineering problems.
PO2. Problem Analysis An ability to identify, formulate and analyze complex engineering
problems. Also, capability to select and apply the engineering knowledge to computing problems that
requires the application of principles and applied procedures or methodologies.
Page 3 of 3