Assignment # 02: Spring 2021
Assignment # 02: Spring 2021
Please carefully read the following instructions before attempting the assignment.
You should consult the recommended books to clarify your concepts as handouts are not
sufficient.
Assignment Submission:
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.
You are required to send question no. 1 as a screenshot displaying the compilation and running
of both required programs. Furthermore C code of question no. 1 for both Programs should also
be pasted in the same word file after the screenshot. Question No. 2 answer should also be pasted
in the same word file
OBJECTIVE
The objective of this assignment is to provide hands-on experience of:
To learn and understand inter-process communication using FIFOs.
SRTF scheduling algorithm
NOTE
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 assignments in the
last hour of the deadline. It is recommended to upload the solution file at least two days before
its closing date.
If you find any mistake or confusion in the assignment (Question statement), please consult with
your instructor before the deadline. After the deadline, no queries will be entertained in this
regard.
A. Draw a Gantt chart showing the execution of three processes using the Shortest
Remaining Time First (SRTF) scheduling.
B. Find the turnaround time of each process for the SRTF Shortest Remaining Time First
scheduling algorithm as per the Gantt chart.
C. Calculate the waiting time for the three processes for the SRTF Shortest Remaining
Time First scheduling algorithm as per the Gantt chart?
Note: in case you have installed the Virtual Box you can take the screenshot as follows.
Go to the view menu and click on Take Screenshot as follow.
See the following link for writing and compiling your first program in Linux.
https://vulms.vu.edu.pk/Courses/CS604/Downloads/how%20to%20Write%20and%20run
%20program.rar
See the following link for downloading and installing VirtualBox and Ubuntu.
https://vulms.vu.edu.pk/Courses/CS604/Downloads/tutorial_for_installing_virtualbox_and_u
buntu.mp4
https://vulms.vu.edu.pk/Courses/CS604/Downloads/Guide%20to%20How%20to
%20download%20and%20Install%20VirtualBox%20and%20Ubuntu.docx
See also the following tutorial links at VULMS for downloading and installing VirtualBox.
https://vulms.vu.edu.pk/Courses/CS604/Downloads/CS604-VirtualBox.mp4
Also see the following tutorial at VULMS, and follow the instructions for Installing Ubuntu in
VirtualBox
https://vulms.vu.edu.pk/Courses/CS604/Downloads/CS604-Virtual%20Machine.mp4
You can work in Linux through chrome web Store, or click at the following link and press the
start button Ubuntu will be started.
https://www.onworks.net/runos/create-os.html?os=ubuntu-16.04.6-desktop-i386&home=init
The End