Tutorial 5
Tutorial 5
Group 1:
Group 2:
Group 3:
1. List and explain the different access methods for files. (4 marks)
2. Describe linked and indexed allocation methods for files with the help of
neat
diagrams. (10 marks)
Group 4:
1. Describe the general scheme of using three classifications of users in
connection
with file access control with the help of an example. (5 marks)
2. How many times will ‘Forked’ get printed by the below code and justify
your
answer.
int main() {
fork();
fork();
printf("Forked\n");
return 0;} (3 marks)
Group 5:
Group 6:
1. Suppose that a disk drive has 200 cylinders numbered from 0 to 199 and
the current position of the head is at cylinder 100. For the given disk
queue of requests: - 20,89, 130, 45, 120 and 180, draw the head
movement in FCFS, SSTF, CSCAN disk scheduling algorithms and
compute the total head movements (in cylinders) in each. (9 marks)
2. Point out the significance of Zero capacity queue in IPC? (2 marks)
Group 7:
Group 8: