On a disk with 1000 cylinders, numbers 0 to 999, compute the number of tracks the disk arm must move to satisfy all the requests in the disk queue. Assume that the head is initially at cylinder 123. Suppose the requests have arrived, forming the following disk queue:123, 874, 692, 475, 105, 376, 499, 542, 789, 645, 12, 923 (i) Perform the computation for the following disk scheduling algorithms: (a) FCFS (b) SSTF (c) SCAN (d) LOOK (ii) Depict the corresponding schemes in the form of a diagram

To compute the number of tracks the disk arm must move for each disk scheduling algorithm, we’ll follow these steps: …

Read more

Write the LINUX commands for the following: a) Use the cat command, and display all the .txt files in the current directory on the screen at one go. b) To copy dir3 to dir4 including sub-directories. c) To search for a certain pattern in the files existing in the current directory d) To list lines that does not include and in a text file. e) To compress all .dat files in the current directory. f) To decompress all the .dat files compressed in (e). g) To pause any process. h) To kill a process using its process-id. i) To send a set of files to the line printer. j) To list all the files in the present working directory including the hidden files.

Here are the Linux commands for each of the tasks you’ve listed: (a) Use the cat command, and display all …

Read more