DITS 2213 Final Exam OS
DITS 2213 Final Exam OS
DITS 2213 Final Exam OS
SULIT
CONFIDENTIAL
SESI 2012/2013
SESSION 2012/2013
: DITS 2213
SUBJECT CODE
MATAPELAJARAN
: SISTEM PENGOPERASIAN
SUBJECT
OPERATING SYSTEM
PENYELARAS
: SYARULNAZIAH ANAWAR
COORDINATOR
KURSUS
COURSE
MASA
TIME
TARIKH
DATE
TEMPAT
VENUE
ARAHAN KEPADA CALON:
INSTRUCTION TO CANDIDATES:
1.
2.
3.
Kertas soalan ini mempunyai versi dwi-bahasa. Versi Bahasa Inggeris bermula daripada
mukasurat 2 hingga 8, manakala versi Bahasa Melayu bermula daripada mukasurat 9 hingga 16.
The exam paper consists of dual-language version. The English version starts from page 2 to 8, whereas
the Malay version starts from page 9 to 16.
SULIT
SULIT
(DITS 2213)
PART A (25 MARKS)
Answer ALL Questions
(a) Define the following terminologies for memory management. You can draw a
diagram to support your definition.
i. Frame
(3 Marks)
ii.
Page
iii.
Segment
(3 Marks)
(4 Marks)
(b) File systems provide functions which can be performed on files. List and briefly
explain FIVE (5) of the functions.
(10 Marks)
(c) In Table 1, identify FIVE (5) grain size of parallelism in multiprocessors that
differs in the degree of granularity.
(5 Marks)
Table 1: Synchronization Granularity and Processes
Description
Parallelism inherent in a single instruction stream
Multiprocessing of concurrent processes in a
multiprogramming environment
Distributed processing across network nodes to form a single
computing environment
Multiple unrelated processes
Parallel processing or multitasking within a single application
Grain size
SULIT
(DITS 2213)
Question 1 (25 Marks)
(a) Dynamic partitioning are partitions of a variable length and number. Process is
allocated exactly as much memory as required.
i. Explain how each algorithm differs in their operation.
(9 Marks)
ii.
Based on the figure, which algorithm performs its best? Justify your
answer.
(6 Marks)
(b) Consider the following page address stream formed by executing a program:
1 2 3 4 5 2 1 3 3 2 3 4 5 4 5 1 1 3 2 5
Calculate the number of page faults that would occur if the working set policy
with First in First out (FIFO) and Optimal policies were used with fixed frame
allocation for the program of three frames.
(10 Marks)
SULIT
(DITS 2213)
Assume that the disk head is initially positioned over track 100 and is moving in
the direction of decreasing track number. Estimate the average seek time for
SCAN and C-SCAN disk scheduling policies, draw the scanning graph, and
justify the policies performance according to your results.
(15 Marks)
Question 3 (25 Marks)
Consider the following set of processes:
Table 2: Process Scheduling
Process
Arrival Time
Service Time
12
Perform an analysis for the set of processes in Table 2 to describe Round-robin (q=4),
Shortest Process Next (SPN) and Shortest Remaining Time (SRT) scheduling policies
performance. In your analysis, you are required to:
a) Illustrate the execution pattern for each policy for one cycle.
(9 Marks)
b) Estimate the finish time and normalized turnaround time; which is the ratio of
turnaround time to service time.
(16 Marks)
SULIT
(DITS 2213)
a) In multiuser system, there is a wide variety of access rights have been used by
various systems. Briefly explain THREE (3) of them.
(6 Marks)
b) File organization refers to the logical structuring of records and is determined by
the way files are accessed. Elaborate on how to organize records in a file and
access a particular record in a file.
(10 Marks)
c) Blocks are the unit for I/O with secondary storage. By using diagram, demonsrate
the blocking techniques to organize records as a sequence of blocks for I/O?
(9 Marks)
c) Consider a set of five aperiodic tasks with the execution profiles as shown in
Table 3.
Table 3: Execution Profile of Two Aperiodic Tasks
Process
Arrival Time Execution Time
Earliest
Deadline
A
10
20
110
SULIT
(DITS 2213)
B
C
D
E
20
40
50
60
20
20
20
20
20
50
90
70
Illustrate the scheduling of Aperiodic Real-Time Tasks blocks diagram and justify
the scheduling performance if using:
i.
-END-