Professional Documents
Culture Documents
Operating System CourseWork Portfolio 1 and 2
Operating System CourseWork Portfolio 1 and 2
assessed work for this module and should not be passed to third parties or posted on any
website. Any infringements of this rule should be reported to facultyregistry.eec@coventry.ac.uk
Portfolio 1:
2. Make use of services provided by the operating system, such as process control, threading, memory
management, device access.
3. Understand the mechanisms of a variety of file system and be able to use the tools associated with
them
Portfolio 2:
5. Make use of services provided by the operating system, such as process control, threading, memory
management, device access.
This document is for GTUC/Coventry University students for their own use in completing their
assessed work for this module and should not be passed to third parties or posted on any
website. Any infringements of this rule should be reported to facultyregistry.eec@coventry.ac.uk
Portfolio 1:
Question 1: [20 pts]
A company, using a multi-programming operating system, has 1 megabyte of memory.
The operating system occupies 250K of memory and every process that is executed also
requires 250K of memory.
The processes have an average I/O wait time of 80%.
The company ask you if they should invest in more memory and, if so, how much. What
would you advise and why?
Would your advice change if the company said they had made a mistake and the average
I/O wait time was only 20%? If so, why? Explain step by step
Take a senacario and explain various 4 CPU scheduling algorithms and along with examples.
Portfolio 2:
Each question carries 20 Marks
1. When the UNIX filling system opens a file its i-node is copied into memory. It has
been suggested, that with memory getting cheaper that if n processes open the
same file then n copies of the I-node could be held in memory. Is this a good idea?
Give your reasons and examples for the same.
2. Write a shell script that accepts a file name, starting and ending line numbers as
arguments and displays all the lines between the given line numbers.
3. Write a shell script that takes a command –line argument and reports on whether
it is directory, a file, or something else. Write a shell script that accepts one or
more file name as arguments and converts all of them to uppercase, provided
they exist in the current directory.
This document is for GTUC/Coventry University students for their own use in completing their
assessed work for this module and should not be passed to third parties or posted on any
website. Any infringements of this rule should be reported to facultyregistry.eec@coventry.ac.uk
Notes:
1. You are expected to use the CUHarvard referencing format. For support and
advice on how this students can contact Centre for Academic Writing (CAW).
2. Please notify your registry course support team and module leader for disability
support.
3. Any student requiring an extension or deferral should follow the university process
as outlined here.
4. The University cannot take responsibility for any coursework lost or corrupted on
disks, laptops or personal computer. Students should therefore regularly back-up
any work and are advised to save it on the University system.
5. If there are technical or performance issues that prevent students submitting
coursework through the online coursework submission system on the day of a
coursework deadline, an appropriate extension to the coursework submission
deadline will be agreed. This extension will normally be 24 hours or the next
working day if the deadline falls on a Friday or over the weekend period. This will
be communicated via email and as a CUMoodle announcement.