Operating Systems (CS604)
Assignment # 02
Total marks = 15
14th June 2020
Please carefully read the following instructions before attempting assignment.
RULES FOR MARKING
It should be clear that your assignment would not get any credit if:
The assignment is submitted after the due date.
The submitted assignment does not open or file is corrupt.
Strict action will be taken if submitted solution is copied from any other student or from the internet.
You should consult the recommended books to clarify your concepts as handouts are not sufficient.
You are supposed to submit your assignment in .doc or docx format.
Any other formats like scan images, PDF, zip, rar, ppt and bmp etc will not be accepted.
• The objective of this assignment is to learn scheduling algorithm.
• To learn and understand different Operating System structure.
No assignment will be accepted after the due date via email in any case (whether it is the case of load shedding or internet malfunctioning etc.). Hence refrain from uploading assignment in the last hour of deadline. It is recommended to upload solution file at least two days before its closing date.
If you find any mistake or confusion in assignment (Question statement), please consult with your instructor before the deadline. After the deadline no queries will be entertained in this regard.
For any query, feel free to email at:
Question No 01 15 marks
Consider the following set of processes, with the CPU burst time given in milliseconds:
Process Burst Time
The processes are arrived in the order P1, P2, P3, P4, P5, all at time 0.
A. Draw Gantt chart showing the execution of these processes using FCFS and SJF scheduling.
B. Calculate the turnaround time of each process for FCFS scheduling algorithm as per part Calculation of part A?
C. Calculate the waiting time of each process for SJF scheduling algorithm as per calculation of Part A?
Wish you very Best of Luck!
CS604 Quiz#1 Solution and discussion
___________ scheduler takes the process from the ready queue and assign the CPU with the help of Dispatcher.
While using the read/write system call which data type is use to return the size of file to buffer from file descriptor fd? CS604
_____ system call is used to write to a file or FIFO or any other IPC channel. CS604
In multi-threaded process thread () take two argument, they are used to take______________ and ___________. CS604
Program counter value, address space limit
New thread ID, process name
Register count, program counter
New thread function name, new thread ID
The basic purpose of ________________is to help the users to utilize the hardware resources for completing different tasks in a simplified manner. CS604
Operating system (Page 6)
All of the given
When sender never block because it has an infinite length storage area, then it means it is holding a queue of _____________ capacity. CS604
How many modes are supported in operating system? CS604
In process management, some of the jobs can be suspended for some time in order to give other jobs a chance to be in execution. Which command can be used to place back a suspended program? CS604
A Process ‘A’ that has finished working but its parent process has also finished its execution. In this state the process ‘A’ will be called as _____ process. CS604
Zombie (Page No. 39)
In Unix/Linux ------------- are used for client server communication to pass data between a server process and client processes. CS604
FIFO (page 60)