Operating System
Operating System
Operating System
Assignment 1
Semester 2 2014/2015 (30th March 2015)
[C3, CO1, PO2]
1.
AC: Accumulator
0011 = Load AC from I/O
0111 = Store AC to I/O
In these cases, the 12-bit address identifies a particular external device. Show
the program execution (using format from Figure 1.4) for the
following program.
1. Load AC from device 5
2. Add contents of memory location 940
3. Store AC to device 6.
Also assume that the next value retrieved from device 5 is 3 and that location
940 contains value of 2.
In a CPU, cache access time is 500ns and main memory access time is 2
s. If a block is found, on average, 90% of the time in cache, calculate the
average access time. [5 Marks]
Compare the THREE (3) basic steps of counting and binary semaphore. [5
Marks]
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
_________
Justify TWO (2) reasons why ULTs are better than the KLTs. [5 Marks]
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
_______
[C2, C6, CO2, PO3, PO11]
8. Consider the following codes: