Top-Rated Free Essay
Preview

Operating System

Satisfactory Essays
472 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Operating System
Chapter 7
Exercise #3 – Given a disk pack with 10 platters yielding 18 recordable surfaces…
A = Rotational speed = 10ms
B = Transfer rate = 0.1ms/track
C = Density per track = 19,000 bytes
D = Number of records to be store = 200,000 records
E = Size of each record = 160 bytes
F = Block size = 10 logical records
G = Number of tracks per surface = 500

a) Number of blocks per track:
(C) / (E*F) 19,000 / (160*10)
19,000 / 1600
11.875
11 BLOCKS
b) Waste per track:
C – (E*F*11)
19,000 – (10*160*11)
19,000 – 17,600
1,400 BYTES
c) Number of tracks required to store the entire file:
(D*E) / C
(200,000*160)/19,000
32,.00,000/19,000
1,684.2105263157894
1,684 TRACKS
d) Total waste to store the entire file:
1,400 * 1,684
2,357,600 BYTES
e) Time to write all of the blocks:
(A+((B*11)*F))*(11*1,684)
(10+((.1*11)*10))*(11*1,684)
(10+(1.1*10))*18,524
(10+11)*18,524
21*18,524
389,004 MS
f) Time to write all of the records if they’re not blocked:
(A+(C*B))*D
(10+(19,000*.1))*200,000
(10+1,900)*200,000
1,910*200,000
380,000,000 MS
g) Optimal blocking factor to minimize waste:
IDK.
h) What would be the answer to (e) if the time it takes to move to the next track were 5ms?
389,004 + (5*1,684)
*** NOTE: ME THINKS MY FORMULA IS WRONG DEPENDING ON HOW ROTATIONAL SPEED IS DEFINED. I NOTICED I HAVEN’T USED THE GIVEN INFO OF 500 TRACKS PER SURFACE SO MY HUNCH IS THAT IT SHOULD BE CONFINED WITH VARIABLE IN COMPUTING TIME…

Exercise #4 – Given that it takes 1 ms to travel from one track to the next, and that the arm is originally positioned at Track 15 moving toward the low-numbered tracks, compute how long it will take to satisfy the following requests:
4, 40, 11, 35, 7, and 14
Using the LOOK policy
All request are present in the wait queue
Ignore rotational time and transfer time; just consider seek time

1. How does the result compare with Fig. 7.16?

START
FINISH
TRAVELED
5
10
15
20
25
30
35
40
15
14
1

X

14
11
3

X

11
7
4

X

7
4
3
X

4
35
31

X

35
40
5

X
Total # of Tracks Traveled:
47
Here’s my stating the obvious: less both distance traveled as well as average travel between jerks
Average # of Tracks Traveled:
7.833333333333333333333

2. Why do you think there is a difference between the two? The reverse direction made the difference: the path the arm had taken was identical to Fig. 15 which was operating under the SSTF (Shortest Seek Time Policy) policy.

Exercise #8 – Compute how long it will take to process then records…
A = Time to transfer a record 1ms
B = Time to process a record 2ms
C = Time to access the next record 1ms (10ms divided by ten records)
D = Number of records
The only thing that I noticed is that it takes the disk 10ms to make a complete rotation and since a track also holds 10records, I took the straight forward approach and assumed that by the time the F has finished a particular task, the disk is already in the right position to start the next series of task with A. Hence, ((A+B+C)*D)-C) with the - C to account for the last step which doesn’t need to access anything since, well, it is the last.
((A+B+C)*D) - C
((1+2+1)*10) – 1
4*10-1
39ms

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Record your answer from Lab Exercise #1, Step 1, Question 3. What is the time lag (S-P) in hours:minutes:seconds?…

    • 1340 Words
    • 6 Pages
    Satisfactory Essays
  • Good Essays

    6. In regard to your answer to part a, approximate how much faster (in seconds or milliseconds) of a response time the better scenario has. 0.5 sec…

    • 765 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Netw320 wk4lab

    • 1084 Words
    • 4 Pages

    4. In regard to your answer to part a, approximate how much faster (in seconds or milliseconds) of a response time the better scenario has.…

    • 1084 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    1. You send a message to Buzz Aldrin on the moon, 384,000 km and he sends you an immediate reply. Both messages travel at the speed of light. How long do you have to wait between sending your message and receiving his? Over 2 sec.  (time= dist/speed= 384,000km/ 3x10^5)=1.28 Sec. (then X2 for there and back)…

    • 3861 Words
    • 16 Pages
    Good Essays
  • Good Essays

    25. A standing wave is established in a 1.5 m long string fixed at both ends. The string vibrates in 2 segments when vibrating at 80 Hz. What is the speed of traveling waves on this string?…

    • 2368 Words
    • 10 Pages
    Good Essays
  • Satisfactory Essays

    Lab assign

    • 276 Words
    • 2 Pages

    - It took 0.000408000 secs and te Tie delta frame was 0.00408000 secs and the Time since the first fram is 0.027553000 secs…

    • 276 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Glacier Lab Report

    • 341 Words
    • 2 Pages

    move at a constant rate, for, despite having a steeper angle, the time taken on the lab table took…

    • 341 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Between which two points did the runner travel at the same speed as they did between A and B?…

    • 414 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Practice Quiz

    • 5122 Words
    • 42 Pages

    pushes up on the block at the point A (at the bottom of the loop)? Consider friction between the block and the track to be negligible. 1. NA = 2. NA = 3.…

    • 5122 Words
    • 42 Pages
    Satisfactory Essays
  • Powerful Essays

    Biology Project

    • 2251 Words
    • 10 Pages

    2.Add all the times up and divide by 100 then calculate the velocity using this equation V= D/T D=distance T=time.…

    • 2251 Words
    • 10 Pages
    Powerful Essays
  • Satisfactory Essays

    earth science lab quiz 4

    • 1096 Words
    • 5 Pages

    Record your answer from Lab Exercise #2, Step 1. What is the time lag for noted at…

    • 1096 Words
    • 5 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Flying Pig Lab

    • 184 Words
    • 3 Pages

    Find the circumference by finding θ from the length of the string and the height of…

    • 184 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Java

    • 5076 Words
    • 21 Pages

    Explanation: E) We convert each of these capacities to bytes (rounding off) to compare them. The value in A remains the same, 1 1/2 trillion bytes. The value in B is 100 billion bytes. The value in C is 3 1/2 billion bytes. The value in D is 10 trillion bytes. The answer in E is 12 trillion bytes.…

    • 5076 Words
    • 21 Pages
    Good Essays
  • Good Essays

    One of the questions I failed to answer correctly on this test is #19. I believed the answer to be B, but the answer is actually C. The reason why I know C is actually the correct answer is because firstly, I didn’t notice the line 26, which states “like so much time used up.” Secondly, the line 27 describes that there had been a moment when time and distance stopped; which is an indication of pilot…

    • 880 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    This test will be assessed in an illuminated square arena box (60x60x30 cm.) surrounded by walls to prevent escape. Speed and time spent moving…

    • 867 Words
    • 4 Pages
    Satisfactory Essays