BN104 Operating Systems
Assignment 2: Online Quiz and Answering Questions
Submission Due: Thursday, 29 September 2016 by 5 pm.
Total Marks = 15% of total assessment for the unit.
Purpose of this assignment:
The purpose of this written assignment is to verify students’ knowledge on some of the topics covered in the second half of the course: The Device Handler, File management, Deadlock, UNIX/Linux OS commands. Students must answer Multiple Answer Questions and write a report on selected OS topics and algorithms. In this assignment students would:
• Apply their knowledge on the topic of device handler’s seek strategies in answering a question related to the topic
• Report their understanding on system deadlock and provide an example of a deadlock scenario for a given system
• Demonstrate their competency in the use of a command line interface to operate with and manage Unix/Linux OS
Description of this assignment:
This assignment consists of two parts:
Part A: An online quiz Assignment 2, which includes 40 questions. Students may have 3 attempts at this quiz. The system will keep the highest grade.
Part B: Answering 3 questions related to aspects of Operating Systems, worth 60 marks.
Submission guidelines:
1. Your submission should include the following:
• The cover page must identify student (name and number), teaching staff, and assignment.
• The assignment must use 12-point font size minimum and at least single line spacing with appropriate section headings.
• Reference sources must be cited in the text of the report, and listed appropriately at the end in a reference list. You can refer to the lecture notes, textbook, Internet websites or any other books or resources for your report. However, make sure that you write the report in your own words and clearly write all the references that you have used. IEEE style should be used for referencing (URL: http://www.ieee.org/documents/ieeecitationref.pdf).
2. The assignment must be submitted using the appropriate online submission in the Moodle system.
Marking criteria:
Marks are allocated as indicated on each question, taking the following aspects into account:
Section to be included in the report Description of the section Marks
Online Quiz Complete the online Quiz on Moodle 40
Device handler seek strategy Answer questions related to device handler seek strategies 30
Deadlock Draw directed graph and demonstrate system deadlock 10
Unix/Linux Operating System Do some research and answer questions related to Unix/Linux Operating system. 20
Reference style Follow IEEE reference style
Total 100
Extensions: Under normal circumstances extensions will not be granted. In case of extenuating circumstances—such as illness—a Special Consideration form, accompanied by supporting documentation, must be received within 3 working days from the due date. Special consideration forms are available on AMS and also from the academic counter. Penalties may apply for late submission without an approved extension.
Marking Rubrics for Assignment 2: for written answers:
Excellent Good Acceptable Unsatisfactory
Analysis, technical explanation (40%) Logic is clear and easy to follow Consistent and convincing OK, but with some shortcomings Confused or disjointed
Expression, justification (40%) Writing is correct and well integrated Mostly good expression, and reasonable well integrated Expression not clear, English only acceptable Poor English expression
Reference style
(10%) Clear styles with excellent source of references. Generally good referencing/style Some references missing or wrong style No references or many errors
Presentation
(10%)
Proper style, professionally presented Mostly good, but some presentation problems Some apparent presentation problems Poor structure, careless presentation
Assignment 2-Questions
A-QUIZ 40 marks
Attempt your quiz after Week 10, and paste below the Moodle summary
B-Q1 30 marks
Device Handler Seek Strategies
a 15 marks
On a hard disk, the queue of track requests is as follows:
19 36 2 27 0 21 18 55 22
Assume that the head starts at track 19.
Draw a diagram for arm movement for each of the following seek strategies. (5 marks each)
i) FCFS
ii) SSTF
iii) LOOK
b 15 marks
Calculate the total number of tracks and the average number of tracks travelled by the head to satisfy the requests in B-Q1-a (Details of the calculations is essential).
B-Q2 10 marks
Deadlock
a 5 marks
Describe the four conditions of deadlock in your own word.
Give references and cite the sources that you used for this task.
b 5 marks
Consider a system with five dedicated devices and four processes (process A, B, C and D) that require a maximum of two devices to complete the task. Draw a directed graph of a scenario that demonstrates there is a deadlock in the system. You can use any number of devices (maximum five) and processes (maximum four) in your demonstration. Explain your graph with details.
B-Q3 20 marks
UNIX
a 12 marks
Document the following UNIX commands (in clear and concise form):
• chmod
• cd
• mkdir
• ls
Each of the above commands must be documented to the extent so that the reader of your report could understand how each command works, including the following points:
? Brief introduction of the function of the command in your own words (in 2-3 sentences)
? The basic syntax of the command, including options. Where appropriate, give a brief description in your own words of at least two options of the command.
? At least two examples of the usage of the command that you have used in lab (provide screen capture).
Give references and cite the sources that you used for this task.
b 8 marks
i) Research the similarities and differences between Unix and Linux operating systems.
(5 marks)
ii) Name three different flavours/distribution of Unix and Linux operating systems.
(3 marks)
Give references and cite the sources that you used for this task.
GET ANSWERS / LIVE CHAT