Operating Systems IT241
|
Pg. 01 |
|
خطأ! استخدم علامة التبويب "الصفحة الرئيسية" لتطبيق Heading 1 على النص الذي ترغب في أن يظهر هنا. |
|
|
|
|
Assignment 3
Deadline: Sunday 8/04/2018 @ 23:59
[Total Mark for this Assignment is 4]
Operating Systems
IT241
College of Computing and Informatics
|
|
|
|
|
|
|
|
Question One
1 Mark
Learning Outcome(s):
Understand how to manage the access and permissions to files and directories on some operating systems.
"chmod" is a well known command line utility, that is used for manually managing the access and permissions to files and directories on MacOS, Linux and other Unix like operating systems. Explain how the file permissions are changed after executing this command:
$ chmod 624 SEUfile.txt
Answer:
Question Two
1 Mark
Learning Outcome(s):
Instructors: State the Learning Outcome(s) that match this question
Consider a file system on a disk that has both logical and physical block sizes of 512 bytes. Assume that the information about each file is already in memory. For each of the three allocation strategies (contiguous, linked, and indexed), answer these questions:
a. How is the logical-to-physical address mapping accomplished in this system? (For the indexed allocation, assume that a file is always less than 512 blocks long.)
b. If we are currently at logical block 10 (the last block accessed was block 10) and want to access logical block 4, how many physical blocks must be read from the disk?
Answer:
Question Three
1 Mark
Learning Outcome(s):
(a) Describe the physical structure of secondary storage devices and its effects on the uses of the devices.
(b) Evaluate disk scheduling algorithms
a) Explain the ways of disk attachments used by computers to access memory disk.
[0.5 mark]
Answer:
b) Explain C-SCAN disk scheduling algorithm with example? [0.5 mark]
Answer:
Question Four
1 Mark
Learning Outcome(s):
Evaluate disk scheduling algorithms
Suppose that a disk drive has 5,000 cylinders, numbered 0 to 4,999. The drive is currently serving a request at cylinder 2,150, and the previous request was at cylinder 1,805. The queue of pending requests, in FIFO order is as below:
2069, 1212, 2296, 2800, 544, 1618, 356, 1523, 4965, 3681
Starting from the current head position, what is the total distance (in cylinders) that the disk arm moves to satisfy all the pending requests for each of the following disk-scheduling algorithms?
a) LOOK [0.5 mark]
Answer:
b) C-LOOK [0.5 mark]
Answer: