1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Luden [163]
3 years ago
8

Consider a disk with the following characteristics (these are not parameters of any particular disk unit): block size B 512 byte

s; inter block gap size G 128 bytes; number of blocks per track 20; number of tracks per surface 400. A disk pack consists of 15 double-sided disks. a. What is the total capacity of a track, and what is its useful capacity (excluding inter block gaps)? b. How many cylinders are there? c. What are the total capacity and the useful capacity of a cylinder? d. What are the total capacity and the useful capacity of a disk pack? e. Suppose that the disk drive rotates the disk pack at a speed of 2,400 rpm (revolutions per minute); what are the transfer rate (tr) in bytes/msec and the block transfer time (btt) in msec? What is the average rotational delay (rd) in msec? What is the bulk transfer rate? f. Suppose that the average seek time is 30 msec. How much time does it take (on the average) in msec to locate and transfer a single block, given its block address? g. Calculate the average time it would take to transfer 20 random blocks, and compare this with the time it would take to transfer 20 consecutive blocks using double buffering to save seek time and rotational delay.
Computers and Technology
1 answer:
telo118 [61]3 years ago
7 0

Answer:

a) total capacity = (Block size + I. Gap size)*N

total capacity = (512+128 Bytes)* 20= 12800 Bytes = 12.8 Kb

Useful.cap = Block size * N = 512*20 = 10240 Bytes = 10.24 Hb

b) Cylinders c) [tex] T = (512+128 Gb) *20 *15*2 = 384000 Bytes= 384Kb

U = 512Gb*20*15*2= 307200 Bytes= 307.2 Kb

d) TS= 384000 Bytes *400 =153600000 Bytes= 153500 Kb= 153. 6Mb

UT = 307200 Bytes*400=122880000 Bytes = 122880 Kb = 122.88 Mb

e) RS= 2400 rpm * \frac{60 s}{1 min}= 144000 rps

Tr= \frac{total capacity}{RS} = \frac{12800 By}{144000 rps}= 0.0889 bytes/s

And if we convert using 1 s = 1000 ms we have"

0.0889 bytes/s * 1000 =88.89 bytes/ms

The block transfer time btt would be given by:

btt= \frac{512 bytes}{88.9 bytes/ms}=5.76 ms

And the average rotational delay would be given by:

rd= \frac{1}{2} (\frac{1}{2400 rpm}) 60 s  \frac{1000 ms}{1 s}= 12.5 ms

f) For this case we can calculate the average time to locate and transfer adding the following time:

TT= btt +rd+ st = 5.76 +12.5 +30 ms= 48.26 ms

g) For this case we can calculate the time to transfer 20 random blocks like this:

t_1 = 20*(s+rd+btt) = 20*(30+12.5+5.76) =965.2 ms

And the time to transfer 20 consecutive blocks using double buffering would be:

t_2 = s+ rd+ 20 btt = 30 +12.5 + 20 (5.76)=157.7 ms

Explanation:

Part a

For this case we need to calculate first the total capcity like this:

total capacity = (Block size + I. Gap size)*N

Where N represent the number of blocs per track, and if we replace we got:

total capacity = (512+128 Bytes)* 20= 12800 Bytes = 12.8 Kb

And the useful capacity is given by:

Useful.cap = Block size * N = 512*20 = 10240 Bytes = 10.24 Hb

Part b

For this case the number of cylinders correspond to the number of tracks.

Cylinders = tracks= 400

Part c

First we can calculate the total cylinder capacity like this:

T = (512+128 Gb) *20 *15*2 = 384000 Bytes= 384Kb

And the useful capacity is:

U = 512Gb*20*15*2= 307200 Bytes= 307.2 Kb

Part d

We can calculate the totals like on part d but we just need to multiply by 400 since that represent the number of tracks per surface

TS= 384000 Bytes *400 =153600000 Bytes= 153500 Kb= 153. 6Mb

UT = 307200 Bytes*400=122880000 Bytes = 122880 Kb = 122.88 Mb

Part e

For this case we can convert the revolution per minute in revolutions per second like this:

RS= 2400 rpm * \frac{60 s}{1 min}= 144000 rps

And we can calculate the transfer rate like this:

Tr= \frac{total capacity}{RS} = \frac{12800 By}{144000 rps}= 0.0889 bytes/s

And if we convert using 1 s = 1000 ms we have"

0.0889 bytes/s * 1000 =88.89 bytes/ms

The block transfer time btt would be given by:

btt= \frac{512 bytes}{88.9 bytes/ms}=5.76 ms

And the average rotational delay would be given by:

rd= \frac{1}{2} (\frac{1}{2400 rpm}) 60 s \frac{1000 ms}{1 s}= 12.5 ms

Part f

For this case we can calculate the average time to locate and transfer adding the following time:

TT= btt +rd+ st = 5.76 +12.5 +30 ms= 48.26 ms

Part g

For this case we can calculate the time to transfer 20 random blocks like this:

t_1 = 20*(s+rd+btt) = 20*(30+12.5+5.76) =965.2 ms

And the time to transfer 20 consecutive blocks using double buffering would be:

t_2 = s+ rd+ 20 btt = 30 +12.5 + 20 (5.76)=157.7 ms

You might be interested in
def getCharacterForward(char, key): """ Given a character char, and an integer key, the function shifts char forward `key` steps
zhenek [66]

Answer:

  1. def getCharacterForward(char, key):  
  2.    charList = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  3.    if(len(char) > 1):
  4.        return None  
  5.    elif(not isinstance(key, int)):
  6.        return -1
  7.    else:
  8.        index = charList.find(char)
  9.        if(index + key <= 25):
  10.            return charList[index + key]
  11.        else:
  12.            return charList[(index + key)% 26]
  13. print(getCharacterForward("C", 4))
  14. print(getCharacterForward("X", 4))

Explanation:

Firstly, define a charList that includes all uppercase alphabets (Line 2). We presume this program will only handle uppercase characters.

Follow the question requirement and define necessary input validation such as checking if the char is a single character (Line 4). We can do the validation by checking if the length of the char is more than 1, if so, this is not a single character and should return None (Line 5). Next, validate the key by using isinstance function to see if this is an integer. If this is not an integer return -1 (Line 6 - 7).

Otherwise, the program will proceed to find the index of char in the charList using find method (Line 9). Next, we can add the key to index and use the result value to get forwarded character from the charList and return it as output (Line 11).

However, we need to deal a situation that the char is found at close end of the charList and the forward key steps will be out of range of alphabet list. For example the char is X and the key is 4, the four steps forward will result in out of range error. To handle this situation, we can move the last two forward steps from the starting point of the charList. So X move forward 4 will become B. We can implement this logic by having index + key modulus by 26 (Line 13).  

We can test the function will passing two sample set of arguments (Line 15 - 16) and we shall get the output as follows:

G

B

8 0
3 years ago
One acre of land is equivalent to 43,560 square feet. Write a program that asks the user to enter the total square feet in a tra
lana [24]

Answer:

Explanation:

Using Python programming language:

def get_number_acres(square_feet):

   return square_feet / 43560

sq_feet = input('Enter the number of square feets >>> ')

number_acres = get_number_acres(sq_feet)

7 0
3 years ago
PLSS HELP ASAP ILL GIVE BRAINLIEST THANKS
Svet_ta [14]
Second one i’m pretty sure
3 0
2 years ago
What are the functions of language in logic?​
kifflom [539]

Answer:

Three basic functions of language: Informative, Expressive, and Directive Language

  • Informative language. Simply put, informative language can be looked at as though it is either right or wrong, or true or false
  • Expressive language
  • Directive language

7 0
3 years ago
The larget social networking site to date is
maks197457 [2]
FB, I would guess.

Sincerely,

Xeno
3 0
3 years ago
Other questions:
  • Which osi model layer manages data encryption?
    14·1 answer
  • 1. Do you consider Facebook, MySpace, and LinkedIn forms of disruptive or sustaining technology? Why?
    15·1 answer
  • In the Word 2016 window, where is the Status bar located?
    11·1 answer
  • What is blockchain? How it works? I heard bitcoin uses it.
    8·1 answer
  • Please Help!! How to code this in Python?
    11·1 answer
  • I NEED HELP ASAP:
    8·1 answer
  • An insulated anti-short fitting required to be installed in the ends of Type AC cable to protect the wires from abrasion is typi
    13·1 answer
  • What EFC number will enable a student to receive the full amount of a Pell<br> Grant?
    9·1 answer
  • Why does your e-learning course need a title slide?
    10·2 answers
  • Which of the following commands can be used to display socket information out to the terminal screen
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!