VUDESK

¤Virtual University Of Pakistan Network¤

Assignment No. 04

Due Date:
Your assignment must be uploaded/submitted before or on 25Th June 2012.

Q1 Marks = 15

Assume that three I/O devices are connected to a 16-bit, 100 MIPS CPU. The first device is a hard drive with a maximum transfer rate of 2MB/sec. It has a half word (16-bit) bus. The second device is a floppy drive with a transfer rate of 10KB/sec over 8-bit bus, and the third device is a keyboard that must be polled 25 times per second. Assuming that the polling operation requires 40 instructions for each I/O device, determine the percentage of CPU time required to poll each device and also state what you infer after calculating these percentages.

Tags: 2012.DUE, 4-25Th, Advance, Architecture-ASSIGNMENT, CS501, Computer, DATE, June

Views: 97

Replies to This Discussion

Advertise Here

i start from 1st part i mean for hard drive.

the values given are: max transfer rate 2MB. while it has half word size means (16-bit). 

so first make this 2MB in half word. as i have al ready shown the process again doing here.

2MB = 2048 KB. AND in half words it comes out ot be 1024.

and now our calculation will be as follows:

1024 * 2^10 * 40 = 41943040 it is instructions per second.

now the percentage of CPU time required for polling will be as shown below:

41943040 / (100 * 10^6) = 0.4194304. and now we will multiply this value with 100 to make it in percentage.

now it will comes as shown front = 0.4194304 * 100 = 41.94304%. 

so, this is our solution of first part or of hard drive's part.

in same way we go for floppy.

the number of CPU instructions required will be:

10 * 2^10 * 40 = 409600 instructions per second.

and the time for polling will be as shown below:

409600 / (100 * 10^6) = 0.004096 and to make in percentage again we multiply it with 100.

and it comes as 0.004096 * 100 = 0.4096%.

number of instructions for polling with keyboard will be as:

25 * 40 = 1000 ins per second.

time for polling will be as 

1000 / (100 * 10^6) = 0.00001 to make it in percentage we multiply it with 100 and we get 0.001%.

that's it.

and in second part of assignment which is "

and also state what you infer after calculating these percentages."

we will write that it is acceptable to use polling with keyboard and floppy and it is risky to use polling with hard disk.

now i think there is no single thing remain to get full marks.

 

RSS

*Member OF Week*

1. SiLeNt MooN(Admin)

Harrapa(Sahiwal), Pakistan

=======================

Popular Social Events

=======================

+ Member of the Day

+ Member of the Week

+ Member of the Month

+ Member of the Year

+ Miss VU

+ Mr VU

+ Gold Members

+ Vote for Miss VU

+ Vote for Mr VU

+ Members Points Table

+ Profile Points Allocation

+ Competition Corner

+ Our Fans Club

+ Certificate Winners

---------------------------------------

௵ Scholars Of Desk

 Gold Members

 MR VU,S

௵ MISS VU,S

 Members Of Month

 Team Members

 Moderators 

  ADMINS

ʭAdministrationʭ

Senior Admin : Yasmeen

VUDESK Owner : Ismail Shah

DMCA.com

VUDESK GROUPS

© 2013   Created by ʭIsmail Shahʭ.

Badges  |  Report an Issue  |  Terms of Service

-->