2021 Feb
2021 Feb
February 2021
Duration : 2 hours
(Masa : 2 jam)
Please ensure that this examination paper contains SIX (6) printed pages before you begin
the examination.
[Sila pastikan bahawa kertas peperiksaan ini mengandungi ENAM (6) muka surat yang
bercetak sebelum anda memulakan peperiksaan ini.]
[Anda dibenarkan menjawab soalan sama ada dalam bahasa Inggeris atau bahasa
Malaysia.]
…2/-
SULIT
SULIT CST232
-2-
(40 marks)
A, B, E, B, A, C, B, A, B, C, D, C, D, E, D, A
Assume the process is allocated with three page frames in the main memory
and the frames are initially empty.
(i). Perform a page trace analysis indicating page faults with asterisk (*)
using First In First Out (FIFO) page removal algorithm. Then compute
the success and failure ratios.
(ii). Repeat 1(a)(i) by using the Least Recently Used (LRU) page removal
algorithm.
(iii). Compare the two success ratios and comment on the effectiveness of
page removal algorithms.
(60 marks)
…3/-
SULIT
SULIT CST232
-3-
Draw a timeline for each of the process scheduling algorithms showing the
time that each job arrives and the order that each is processed. Calculate the
turnaround time for each job.
(72 marks)
…4/-
SULIT
SULIT CST232
-4-
(50 marks)
(b). Describe ONE (1) advantage and ONE (1) disadvantage for each of the
following storage device seek strategies:
(ii). LOOK.
(iii). C-SCAN.
(30 marks)
(c). Based on the RAID technology in the following scenarios, identify the best
RAID level (0 to 6) that should be used:
(i). Network File System which require high reliability but with moderate
complexity, by distributing the data and parity strips evenly across all
disks in the array.
(ii). Media streaming for High Definition Video, where extremely high
throughput is required.
(iv). Real Time Medical Diagnostics system requiring high reliability and
high throughput.
(20 marks)
…5/-
SULIT
SULIT CST232
-5-
4. (a). A student has produced the code below for Consumer process only.
semaphore full = 0;
semaphore empty = n;
semaphore mutex = 1;
void Consumer() {
While (true) {
P(full);
P(mutex);
Read_from_buffer();
V(mutex);
V(empty);
Consume();
}
}//end consumer()
(i). Examine the uses of semaphore variables mutex, full and empty.
(ii). What will happen if the student runs the above code? Explain your
answer.
(30 marks)
(b). Given a magnetic tape data storage system with Inter Record Gap (IRG)
length of 1 cm, where each data record requires a tape length of 0.2 cm. Each
file starts and ends with a data block and there exits gaps between these
blocks.
(i). Calculate the length of the tape required to keep 200 records using 10
records per block.
(ii). Calculate the length of the tape required to keep 200 records using 25
records per block.
(iii). Calculate the length of the tape required to keep 200 records using 50
records per block.
…6/-
SULIT
SULIT CST232
-6-
(iv). Distinguish the effect of the 4(b)(i), 4(b)(ii) and 4(b)(iii), towards small-
sized files (with 15 records average for each file).
(25 marks)
(c). Consider the disk arm is moving on a disk with 200 tracks. While retrieving
data from Track 100, the following requests has arrived:
Track 120, 55, 58, 39, 18, 90, 160, 150, 38, 184.
Determine the seek order and the total seek time travelled by the arm when
the following algorithms are used:
(ii). SCAN
(iii). C-LOOK
(45 marks)
- oooOooo -
…7/-
SULIT