- Level: University Degree
- Subject: Mathematical and Computer Sciences
- Word count: 907
State two advantages and two disadvantages of a layered operating system.
Extracts from this document...
Introduction
CCM 3070Y:\svn\trunk\engine\docs\working\acumen3\85822.doc
Coursework 1
Question 1
State two advantages and two disadvantages of a layered operating system.
1).
- Advantages of layered operating systems are:
- It is decomposable and therefore effects separation of concerns and different abstraction levels
- It allows good maintenance, where you can make changes without affecting layer interfaces
- Disadvantages of layered operating systems are:
- It is difficult to exactly assign of functionalities to the correct and appropriate layer
- Because of having too many layers, performance of the system is
degraded
Question 2
a. Give definitions for: turnaround time, throughput, processor utilisation
b. When might a context switch occur? What exactly is saved? Why?
c. In the presence of asynchronous interrupts, even the most innocent
looking program can produce mysterious results. If concurrency can
produce subtle bugs, why use it?
2).
a. Turnaround time: - is the time taken between the submission and complete
execution of a process, which includes the actual running
time and waiting time for accessing the resources
Throughput:
Middle
b. A context switch occurs when a thread releases the processor, and whereby
the task/process of the front of the ready queue becomes the new active
task. The execution context of the previous thread has to be saved so that
the thread can be used later. Mainly, the program counter and the
execution stack associated with the executing thread is saved, so that the
context of a new thread can be restored.
c. We use concurrency because it allows multiple users to share a machine and
programming is made easier by breaking a problem into simple pieces.
Moreover, concurrency also provides other advantages such as timesharing,
parallel processing, overlapping computation with Input/Output and solution
for larger problems.
Question 3
List the responsibilities in UNIX of: a. the shell b. the kernel
3).
a. Responsibilities of the shell in UNIX:
- to provide a command line interface (CLI)
- to perform Input/Output redirection
- to perform pathname substitution
- to perform parameter/variable substitution
Conclusion
Question 6
A computer systems uses segmentation and paging. When a segment is in memory, some words are wasted on the last page. A segment of size s will have s/p pages of size p. How do the page table size and the last page wastage each vary with page size? Find by calculation or otherwise the page size which will give the least overhead.
6).
Bibliography & References
Books
J. S. Swift, “Virtual Machinges II”, ©2002, School of Computing Science
Silberschatz, A., Galvin, P.B., and Gagne, G., Applied Operating Systems, Concepts, 1st Edition, J.Wiley and Sons, 2001
Tanenbaum, A. S., Modern Operating Systems, 2nd Edition, Prentice Hall, 2001
Websites
http://216.239.37.100/search?q=cache:eouvIOpZiiwC:www.ics.uci.edu/~muccini/ics123/LectureNotes/3.SAStyle_6.pdf+advantages+and+disadvantages+of+a+layered+operating+system&hl=en&ie=UTF-8
http://www.its.bldrdoc.gov/fs-1037/dir-037/_5439.htm
http://www.cim.mcgill.ca/~franco/OpSys-304-427/lecture-notes/node39.html
http://www.cs.colorado.edu/~nutt/OSAMP/StudentMtls/deadlock.html
Gasthurie Kanagachandran 2035883
This student written piece of work is one of many that can be found in our University Degree Computer Science section.
Found what you're looking for?
- Start learning 29% faster today
- 150,000+ documents available
- Just £6.99 a month