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
Genrish500 [490]
4 years ago
14

Given the following characteristics for a magnetic disk pack with 10 platters yielding 18 recordable surfaces (not using the top

and bottom surfaces): Rotational speed = 13 ms Transfer rate = 0.15 ms/track Density per track = 19,000 bytes Number of records to be stored = 200,000 records Size of each record = 160 bytes Block size = 10 logical records Number of tracks per surface = 500 Find the following: a. Number of blocks per track b. Waste per track c. Number of tracks required to store the entire file d. Total waste to store the entire file e. Time to write all of the blocks (Use rotational speed; ignore the time it takes to move to the next track.) f. Time to write all of the records if they’re not blocked. (Use rotational speed; ignore the time it takes to move to the next track.) g. Optimal blocking factor to minimize wasted space h. What would be the answer to (e) if the time it takes to move to the next track were 5 ms? (i). What would be the answer to (f) if the time it takes to move to the next track were 5 ms?
Computers and Technology
1 answer:
soldi70 [24.7K]4 years ago
7 0

Answer:

a. 11 blocks / track

b. 1400 bytes / track

c. 1819 track

d. 2,545,200 bytes / file

e. 18190 ms = 18.19 s

f. 16.842 s

Explanation:

a. D = Number of blocks per track

E = B * L = 1600 bytes / block

The number of blocks per track must be an integer. The INT function finds the integer part of a number.

D = INT( R / E ) = INT(11.875) = 11 blocks / track

b. F = Waste per track = R - D * E = (19000 bytes / track) - (11 blocks / track) * (1600 bytes / block) = 1400 bytes / track

This is a wastage of about 7.4%.

c. H = Number of tracks required to store the entire file.

G = Number of records per track = (11 blocks / track) * (10 records / block) = 110 records / track

The CEIL operator is the Ceiling operator. It is similar to the INT operator, except that it takes the next higher integer if the argument is not an exact integer.

H = Number of tracks = CEIL[ N / G ] = 1819 tracks

d. J = Total waste to store the entire file = (H - 1) * F = 2,545,200 bytes / file

e. K = Time to write all of the blocks. (Use period of revolution; ignore the time it takes to move to the next track.)

Assume it takes one revolution to record one track.

K = H * T = (1819 tracks) * (10 ms / track) = 18190 ms = 18.19 s

f. M = Time to write all of the records if they are not blocked. (Use period of revolution; ignore the time it takes to move to the next track.)

Assuming we treat the disk like a tape. The total file is 32,000,000 bytes long, which easily can fit in a PC RAM. We can declare a buffer to be the length of the track, and worry about parsing the file back into records when we reread the data.

In this case, we use CEIL(N * L / R) = 1685 tracks. This is 4 surfaces.

M = (N * L / R) * T = 16.842 s

g. P = Optimal blocking factor to minimize waste = INT(R / L) = 118 records / block

The wastage is Q = R - P * L = 120 bytes / track

h. What would be the answer to (e) if the time it takes to move to the next track were 5 ms?

Since we used 1819 tracks, we used tracks on 4 surfaces. When we change surfaces, we do not need to move the arm to another track. Assume also that we do not need to move the arm to position it to the first record in the file.

U = K + (1819 - 4)* 5 ms = 18190 ms + 9075 ms = 27265 ms = 27.265 s

i. What would be the answer to (f) if the time it takes to move to the next track were 5 ms?

In this

V = M + [CEIL(N * L / R) - 4] * 5 ms = 16842 ms + [1685 - 4] * 5 ms = 16842 + 8504 = 25247 ms = 25.247 s

You might be interested in
You have one address, 196.172.128.0 and you want to subnet that address. You want 10 subnets. 1. What class is this address
Korvikt [17]

Answer:

This address is by default a class c network

Explanation:

This IP address in this question is a class c network because it has 196 as its first octet. A class c network is one which has its first octet to be between 192 and 223. the class c network begins with a 110 binary.  If ip is between 192 to 223 it belongs to this class. These first 3 octets are the representation of the network number in the address. Class c's were made to support small networks initially.

8 0
3 years ago
Write a program that accepts a number as input, and prints just the decimal portion.
Olegator [25]

<u>Answer:</u>

<em>There are 2 ways to do extract the decimal part: </em>

<u>Explanation:</u>

  • <em>First method using number  </em>

<em>int main() { </em>

<em>  double num = 23.345; </em>

<em>  int intpart = (int)num; </em>

<em>  double decpart = num - intpart; </em>

<em>  printf(""Num = %f, intpart = %d, decpart = %f\n"", num, intpart, decpart); </em>

<em>} </em>

  • <em>Second method using string: </em>

<em>#include <stdlib.h> </em>

<em>int main() </em>

<em>{ </em>

<em>    char* inStr = ""123.4567"";          </em>

<em>    char* endptr;                       </em>

<em>    char* loc = strchr(inStr, '.'); </em>

<em>    long mantissa = strtod(loc+1, endptr); </em>

<em>    long whole = strtod(inStr, endptr);  </em>

<em>    printf(""whole: %d \n"", whole);      </em>

<em>    printf(""mantissa: %d"", mantissa);   </em>

<em>} </em>

8 0
3 years ago
Read 2 more answers
Hello Everyone.<br>I am new here can anyone help me<br>​
sergejj [24]

Welcome to Brainly!

I am just an Expert user (I was originally gonna be a co-mod, but decided not to take the role) who wants to help! On this website/app, you can ask/answer questions! If you ever need help, this website is the place to go! Just make sure you don't break the guidelines and as Sniper would say, "Be polite"

6 0
3 years ago
Read 2 more answers
Which of the following are true about assembly language instructions and directives?
tia_tia [17]

Answer:

b. an instruction is executed at runtime.

Explanation:

In assembly language, an instruction typically dictates what task to be performed or executed by the processor and this happens at run time.

Closely related to an instruction is a directive which is a special type of instruction that tells the assembler how to perform a particular task and this happens at assembler time.

Instructions dictate what and directives dictate how.

Instructions typically generate machine codes while directives don't.

Examples of instructions are;

i.  AND for logical AND

ii. OR for logical OR

Examples of directives are;

i. ORG for origin

ii. EQU for equate

Therefore the only correct option is b. an instruction is executed at runtime.

3 0
3 years ago
Could Anyone help me with these two questions?
Aleks04 [339]

Answer:1st is b

2nd is d

Explanation:

4 0
4 years ago
Other questions:
  • A foreign country attempting to access government networks in order to disable a national power grid would be an example of: Sel
    7·2 answers
  • What is the subjects under artificial intelligence ?​
    15·1 answer
  • Dialogue is not a characteristic of functional text because
    9·1 answer
  • A customer seeks to buy a new computer and for a private use at home.The customer primarily needs the computer to use the Micros
    15·1 answer
  • Hey so if an instagram account has an email attached to it but a person no longer has access to that email, how do they get back
    10·1 answer
  • ANSWER THIS CORRECTLY FOR BRAINLIEST
    13·2 answers
  • Which are among the ways you can use bitlocker encryption? (choose all that apply?
    5·1 answer
  • What is generalization error in terms of the SVM? a. How accurately the SVM can predict outcomes for unseen data b. How far the
    5·1 answer
  • The term _____ refers to an organization of components that define and regulate the collection, storage, management and use of d
    12·1 answer
  • Which of the following could be part of an algorithm?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!