Question

In: Computer Science

1. A hard disk drive has 16 platters, 8192 cylinders, and 256 4KB sectors per track....

1. A hard disk drive has 16 platters, 8192 cylinders, and 256 4KB sectors per track. The storage capacity of this disk drive is at most

Select one:

a. 32 GB.

b. 128 GB.

c. 32 TB.

2. To further optimize I/O performance, some SSD schedulers

Select one:

a. merge adjacent write requests but not adjacent read requests.

b. do not merge requests at all.

c. merge adjacent read requests but not adjacent write requests.

3. What steps are necessary to create a file?

Select one:

a. allocating a space in the file system

b. all of the other answers

c. making an entry for the file in the directory

d. none of the other answers

4.When the shared lock is applied to a file then ____________

Select one:

a. only one process can use this file

b. many processes can write to this file concurrently

c. several processes can acquire the lock concurrently

d. many processes can read and write to this file concurrently

5. close() operation _____ an open count associated with a given file.

Select one:

a. decreases

b. increases

c. does not change

d. resets

Solutions

Expert Solution

Q.1 Answer The correct answer is option b "128GB"

Given: Number of platters = 16, Number of cylinders = 8192

Capacity per track = 4 * 256KB = 1024KB = 1MB

Capacity per platter = Number of cylinders * capacity per track

= 8192 * 1MB = 8192 MB

Now,

Total capacity = Number of platter * Capacity per platter

= 16 * 8192 MB = 131072 MB

Answer is given in GB, so conver the MB into GB

Total capacity = 131072/1024 = 128GB

Q.2 Answer: None of the answer seems true because to optimize the further I/O performance, SSD schedulers merges all adjacent I/O request.

Q.3 Answer: The correct answer is option b "All the other answers"

To create a file we need to allocate a space in the file system and make an entry for the file in the directory.

Q.4 Answer: The correct answer is option C "several processes can acquire the lock concurrently"

When the shared loack is acquired to the file than many processes can acquire the lock concurrently.

Q.5 Answer: The correct answer is option a "decreases"

Close() opertaion decreases the open count associated with the given file.


Related Solutions

Suppose that a disk drive has 6,000 cylinders, numbered 0 to 5999. The drive is currently...
Suppose that a disk drive has 6,000 cylinders, numbered 0 to 5999. The drive is currently serving a request at cylinder 3150, and the previous request was at cylinder 1805 (Hint: this indicates the reading head's moving direction). The queue of pending requests, in FIFO order, is: 3511, 2332, 2800, 3192, 658, 1296, 1918, 1356, 5936, 2527 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...
Suppose that a disk drive has 5,000 cylinders, numbered 0 to 4,999. The drive is currently...
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: 2,069, 1,212, 2,296, 2,800, 544, 1,618, 356, 1,523, 4,965, 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?...
Suppose that a disk drive has 4,000 cylinders, numbered 0 to 3999. The drive is currently...
Suppose that a disk drive has 4,000 cylinders, numbered 0 to 3999. The drive is currently serving a request at cylinder 2250, and the previous request was at cylinder 1205. The queue of pending requests, in FIFO order is: 1870, 2150, 1250, 778, 3598 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? (show your working steps) FCFS...
PowerDrive, Inc. produces a hard disk drive that sells for $175 per unit. The cost of...
PowerDrive, Inc. produces a hard disk drive that sells for $175 per unit. The cost of producing 25,000 drives in the prior year was: Direct material $625,000 Direct labor 375,000 Variable overhead 125,000 Fixed overhead 1,500,000 Total cost $2,625,000 At the start of the current year, the company received an order for 3,800 drives from a computer company in China. Management of PowerDrive has mixed feelings about the order. On the one hand they welcome the order because they currently...
What is a traditional Hard Disk Drive (HDD) composed?
What is a traditional Hard Disk Drive (HDD) composed?
Given a 2.5 GB FAT hard disk (128 Sectors per Cluster) and assuming a pure ASCII...
Given a 2.5 GB FAT hard disk (128 Sectors per Cluster) and assuming a pure ASCII text file of 10,000 characters [Hint: 1 character is stored in one byte, one sector=512 byte] What is the cluster size in bytes? [4 points] How many clusters are assigned for this file? [4 points] How many sectors are actually needed to store the file? [5 points] How much is the RAM slack? [5 points] How much is the drive slack? [5 points] Show...
Problem 1 [50 pts] Consider a hard disk drive that has 5 double-sided platters, each surface...
Problem 1 [50 pts] Consider a hard disk drive that has 5 double-sided platters, each surface has 1000 tracks, each track has 256 sectors of size 512 bytes. Each block (disk page) comprises of 8 sectors. The seek time between adjacent tracks in 1ms and the average seek time between two random tracks is 25ms. The disk rotates at a speed of 7200 rpm (revolutions per minute). Let’s say, we have a file of size 1 MB and it contains...
Consider a hard disk drive that has 5 double-sided platters, each surface has 1000 tracks, each...
Consider a hard disk drive that has 5 double-sided platters, each surface has 1000 tracks, each track has 256 sectors of size 512 bytes. Each block (disk page) comprises of 8 sectors. The seek time between adjacent tracks in 1ms and the average seek time between two random tracks is 25ms. The disk rotates at a speed of 7200 rpm (revolutions per minute). Let’s say, we have a file of size 1 MB and it contains 2048 equal-sized records. 1....
PowerDrive, Inc. produces a hard disk drive that sells for $175 per unit. The cost of producing 25,000 drives in the prior year was:
PowerDrive, Inc. produces a hard disk drive that sells for $175 per unit. The cost of producing 25,000 drives in the prior year was:       Direct material $625,000 Direct labor 375,000 Variable overhead 125,000 Fixed overhead 1,500,000 Total cost $2,625,000   At the start of the current year, the company received an order for 3,200 drives from a computer company in China. Management of PowerDrive has mixed feelings about the order. On the one hand they welcome the...
Hard Drive Corporation (HDC) manufactures three types of disk drives, designated as Galaxy, Classic and Trendy...
Hard Drive Corporation (HDC) manufactures three types of disk drives, designated as Galaxy, Classic and Trendy for the computer industry. The company has been using a traditional, volume- based product costing system that allocates manufacturing overhead costs based on direct labour dollars. The average direct labour rate is $15 per hour. Data relevant to the three products are as follows: Gallery Model Classic Model Trendy Model Annual sales (units) 5,000 18,000 10,000 Actual current selling price per unit $ 150.00...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT