Ict246 - Tma - Jul 2021
Ict246 - Tma - Jul 2021
Operating Systems
Tutor-Marked Assignment
This assignment is worth 18% of the final mark for ICT246 Operating Systems.
The cut-off date for this assignment is Sunday, 05 Sept 2021, 2355 hrs.
Note to Students:
You are to include the following particulars in your submission: Course Code, Title of the
TMA, SUSS PI No., Your Name, and Submission Date.
Question 1
In this task, you need to write 300 words on Android operating system (OS).
First, explain the core functions of the Android OS. Pick ONE (1) of the core functions and
dive deeper into it.
In addition, describe what Android OS is commonly used for, and what are the advantages of
using Android OS. A reflection should be given at the end of your writeup to describe what
you have learnt and what is your experience (if any) in using Android OS.
(15 marks)
Question 2
In this task, you need to demonstrate the creation and usage of virtual machine using Debian
OS.
A small glove manufacturing company has recently expanded to Singapore. The company has
purchased a server with 10 hard disks (each hard disk has a storage size of 1.5 TB). The server
is installed with Debian OS, and it has an operational life of 30 months.
• 2.1 TB is needed for the manufacturing department to store various documents. No data
should be lost.
• 3 TB is needed for the research and development department to store various designs.
Loss of any of the design documents will impact the company competitive advantage.
• 4 TB is needed for all the staff for fast sharing of non-sensitive information. Loss of
data is not an issue, but performance is important.
• 2 TB is needed for the marketing department to store various documents and videos.
No data should be lost.
Note that besides the Debian operating system, which is installed in a hard disk, you will need
to use ZFS to implement the rest of the 9 hard disks.
Part (a)
Explain and justify how do you plan and utilize the 9 hard disks? Sketch a diagram to help in
your explanation. Appropriate RAID system(s) need to be used.
(15 marks)
Part (b)
Install additional hard drives in your Debian virtual machine, and simulate the scenario using
ZFS with relevant pools and reservations (For this task, you will need to install another 9 hard
disks in your Debian virtual machine).
Demonstrate what you have done with clear explanations and appropriate screen-shots.
(15 marks)
Question 3
In this task, you need to implement system security and access control in Linux operating
system. You could also describe how the processes are managed after you have implemented
your script.
Using Debian OS, write and implement ONE (1) bash shell script (only one script should be
written for whole Question 3). You are to use the root account to execute the script. The script
will implement a modified version of First Come First Served scheduling algorithm. The bash
shell script should have the following specifications:
Part (a)
1. The script will prompt the user to enter a text file (.txt) (Note: each line of the text file
consists of arrival time and service time of a process). As an example, if there are five
processes, and the processes arrival time are 0, 1, 2, 3, 4, and the service time are 2, 10, 8,
9, 20, then the text file will have 5 lines, and the content of the text file will be as follow
(use comma as delimiter between arrival time and service time):
0,2
1,10
2,8
3,9
4,20
2. It will check whether the text file exist, and if the text file does NOT exist, it will ask the
user to re-enter the text file (it will keep asking until the user enter a text file that exists)
3. It will read in the values from the text file and display the number of processes on the screen
4. It will then calculate the finish time for each process and display each process finish time
on the screen
(15 marks)
Part (b)
1. It will also calculate the turnaround time for each process and display each process
turnaround time on the screen
2. The average turnaround time for all processes will then be append to a file “time.txt”
3. The following will then be changed:
Owner of “time.txt” to root user
Group of “time.txt” to root user
Permissions of “time.txt” to the owner can read and write, group can read, and
others do NOT have any permissions
(15 marks)
Part (c)
1. The size of the text file “time.txt” (in bytes) will then be displayed on the screen
2. Validation check needs to be done in the bash shell script whenever possible (e.g. when
inputting the text file, the script should check whether the text file is empty or not)
(10 marks)
Part (d)
IMPORTANT: A zero will be given if your bash shell script cannot be executed.
Note: Your bash shell script should be in text format within the WORD document. Marks
will be severely deducted if your bash shell script is NOT in text format (e.g. if you paste the
bash shell script in WORD as an image).