.... How to Find Your Subject Study Group & Join ....   .... Find Your Subject Study Group & Join ....

We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

www.vustudents.ning.com

Study Groups By Subject code Wise (Click Below on your university link & Join Your Subject Group)

[ + VU Study Groups Subject Code Wise ]  [ + COMSATS Virtual Campus Study Groups Subject Code Wise ]

Looking For Something at vustudents.ning.com?Search Here

# cs501 Assignment no.3 complete solution

Q 1. Suppose we have a 1.5-GHz CPU to which the following three I/O devices are connected:

1. Flash drive that can transfer data in 32-byte chunks with a maximum transfer rate of 16 MB/sec
2. DVD drive which can transfer data in 16-byte chunks with a maximum transfer rate of 16 MB/sec
3. Joystick that needs to be polled 50 times per second

Polling requires 300 instructions for each I/O device. Students are required to compute the percentage of CPU time required to poll each device.

Q 2. Instead of polling, we want to use interrupts for handling the DVD drive. Keeping in view the DVD drive to be active only 12% of the time, you are required to compute the percentage of CPU time for handling it.

Note: Interrupt and polling requires the same amount of instructions.

Views: 8776

### Replies to This Discussion

plz solution share kar dy cs501 ka

how to calculate % of CPU? any idea

50*300 = 15000

15000/(10*10^6) = 0.0015%

Bhai aap ny MIPS kasy calculate keye hen? Ya phir sirf assume kr rhy hen k MIPS 10 hen?

plz solution send kery cs501 3rd asighnmnt on my id rabiamustafa250@gmail.com

10^9 use hogi because processor GHz ka hai

I have doubt on DVD calculation because of the 16byte chunks in book it is divided by 2 then calculated other wise same answers 10.24

Lkn is me ek doubt he, apny MIPS 1500 use keye hen na? MIPS aur processor speed me farq hota he.

Me to 2 bar email kr k instructor se poch chuka hoon k CPI to given nhi he to MIPS kis trha calculate kren, ek bar unho ny kaha k internet pe search kr lo aur dosri bar kaha k kal VVH session me appear ho.

g mujhy bi google or recomended books ki rah dikhae

## Forum Categorizes

Job's & Careers (Latest Jobs)

Scholarship (Latest Scholarships)

Internship (Latest Internships)

::::::::::: More Categorizes :::::::::::

## Latest Activity

35 minutes ago
35 minutes ago
Maan Ali posted a discussion

1 hour ago
1 hour ago
1 hour ago
1 hour ago
1 hour ago
1 hour ago

## Member of The Month

### 1. Marha Khan

Dera Ghazi Khan, Punjab, Pakistan