Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. Suppose we have a magnetic disk with the following parameters: • Average seek

ID: 3695016 • Letter: 1

Question

1. Suppose we have a magnetic disk with the following parameters:

• Average seek time = 4 ms

• Rotation rate = 5400 RPM

• Transfer rate = 50 MB/second

• Sector size = 512 bytes

• Controller overhead = 2 ms [5 points]

What is the average time to read a single sector?

2. Chapter 6 – Parallel Processors from Client to Cloud 6. [9 points] The following three threads show how each would execute running alone on a standard superscalar processor without multithreading support. Show how they would execute running together with the following three multithreading options: coarse-grained multithreading, fine-grained multithreading, and simultaneous mulththreading. The following should look similar to Figure 6.5 in the text. In this example, consider a costly or long stall to be two consecutive stall cycles. Also, I used the thread number in brackets instead of colors as I think it is easier to illustrate this way. You must show how the threads would execute running together as shown in Figure 6.5 to earn full credit.

Thread 1 Thread 2: Thread 3: 01) 011 [1] 2 3] 13] [3] 2 12] [2] 12] [2] 3 13] 13] [3] [3] [3] 13] [3] 2 2 Coarse-grained Multithreading Fine-grained Multithreading Simultaneous Multithreading

Explanation / Answer

Answer 1

Seek time (4 ms) + Average rotational delay (5.55 ms) + Sector read time () + Overhead (5.5

ms) = 15.0 ms

Average time to read single record = 15.0 ms