We have been working very hard since 2009 to facilitate in your learning Read More. We can't keep up without your support. Donate Now.

www.vustudents.ning.com

 www.bit.ly/vucodes + Link For Assignments, GDBs & Online Quizzes Solution www.bit.ly/papersvu + Link For Past Papers, Solved MCQs, Short Notes & More

Looking For Something at Site? Search Below

# CS501 Assignment No.2

CS501 Assignment:

Suppose we have a Processor XYZ with the following specifications:

• Processor speed is 1 GHz.
• It takes 2500 clock cycles to carry out a context switch followed by starting an Interrupt Service Routine (ISR).
• To execute an ISR, 5000 cycles are required.
• The device makes 100 interrupt requests per second.
• Moreover when there are no interrupts, the processor polls for every 0.7 milli-sec and 300 cycles are required to poll an I/O device.

Students are required to calculate:

1. No of cycles/sec the processor spends for handling I/O provided interrupts are used only.
2. Percentage of CPU time used in interrupts handling.
3. No of cycles/sec spent in I/O when polling is also used with interrupts.
4. How frequently the processor polls so that it incurs the same overhead as interrupts.

The End

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

Views: 4282

Attachments:

### Replies to This Discussion

I think Hand out lecture 30 is helpful to solve this assignment.

thanks

GHZ ko MHZ mn convert krna hai???

as described in lecture 30 GHz needs to be convered into MHz

30 lec main kahi nhi likha k GHZ ko MHZ main convert krna ha

Yeh example lec 30 ki  example 6 sa total match ha .. bs GHZ k sath krna h

mere kehne ka matlab hai k lecture 30 main jo example di hai woh Mhz k hisab se hai or 1 Ghz = 1000 Mhz

so according to that we can convert it into 1000 Mhz

yeah but me convert nhi kia

context switching to ISR and back from it k lie aik clock cycle q li ap ne

koi to sahi solution bta do?? plzzzzz

## Latest Activity

EsT@TiC M@nO posted a status
"anyone have solution file of cs420?"
5 hours ago
Ehtisham Ashfaq posted a status
"salam"
5 hours ago
5 hours ago
5 hours ago
5 hours ago
Tasmia Ittba joined +M.Tariq Malik's group

### MTH301 Calculus II

6 hours ago
6 hours ago
6 hours ago
+M.Tariq Malik added a discussion to the group MGT401 Financial Accounting II

### MGT401 Financial Accounting II Online Quiz No 01 Fall 2020 Solution / Discussion

6 hours ago
6 hours ago
Muhammad Azeem joined +M.Tariq Malik's group

### MGT601 SME Management

6 hours ago
6 hours ago
6 hours ago
+M.Tariq Malik added a discussion to the group CS420 Web Development for Portable Devices

6 hours ago

6 hours ago

6 hours ago