How many cycles per second does the processor spend

Assignment Help Computer Engineering
Reference no: EM132142230

Question :

Suppose that in responding to interrupts from an I/O device the processor consumes 1000 cycles in performing the context switch required to transfer control to the interrupt handler. Servicing the device request takes an additional 10,000 cycles whether using interrupts or polling.

Once the interrupt processing is complete, another 1000 cycles are required to perform the context switch required to return from the interrupt handler and resume the program that was running. The device generates I/O requests at the rate of 150 per second (each request causes an interrupt).

a) How many cycles per second does the processor spend handling interrupts and processing requests from the device?

b) Consider an alternative to using interrupts in which a program polls the device for requests every 0.5ms. If this program is the only code running on the processor and each poll requires 500 cycles, how many cycles per second will the program spend on polling alone?

c) At what rate would the program have to poll the I/O device if the program is to consume the same number of cycles per second polling and servicing requests as were consumed using interrupts and servicing requests (as calculated in part a)?

Reference no: EM132142230

Questions Cloud

Explain the information you pass on to the pool management : Explain the information you'd pass on to the pool's management. Explain what types of financial (speculative) risks their organization has
Why might a rational investor invest in the stock : Why might a rational investor invest in the stock of a company that pays no dividend?
Write a program that uses the class die of example : Suppose you roll a set of n dice. then the smallest sum is n and the largest is 6n. example if n=10 then the small sum will be 6 and the largest 60.
Promotions is presumably going to lead to everyday low price : Cutting down on range, new items and promotions is presumably going to lead to ‘everyday low prices’.
How many cycles per second does the processor spend : How many cycles per second does the processor spend handling interrupts and processing requests from the device?
Certain financial ratios for elizabeth arden : I dont understand, Certain financial ratios for Elizabeth Arden for its most recent year below, along with the average ratios for its industry.
Describe how to build a lexical analyzer for this language : Describe how to build a lexical analyzer for this language (lexical rules, FA, a program to simulate the FA, etc.).
Social networking applied to retail inventory control : Read the article "Social Networking Applied to Retail Inventory Control” Preview the document View in a new window from the California Apparel News.
Would the index be an efficient way of finding records : Under what conditions on n1 and n2, would the index be an efficient way of finding records satisfying the condition from Part (2)?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Write the pseudocode to prepare a true-false quiz

Write an interactive true/false quiz. The program should ask the user three true/false questions about any topic you like.

  Program for converting infix expressions into postfix form

Write a program which will transform the infix expressions into the postfix form and then determine the resulting postfix expression.

  List and describe the ways to backup the registry

Describe the Windows kernel, including its two main components and list and describe the ways to backup the registry.

  Write a matlab function s - convert

Write a MATLAB function S - Convert(a,b,c,d,x) that takes our piecewise cubic interpolant representation and converts it into pp form.

  How would you restore the system

Suppose something bad happened on April 26th, 2017. How would you restore the system to 4/26/17 assuming the backups run at night?

  Scripting computer languages and compiled computer language

What is the difference between scripting computer languages and compiled computer language?

  How could the services benefit your company

In this course, you will begin building a Key Assignment (Strategic Plan) for your selected company to begin utilizing cloud computing.

  Techniques for analyzing the costs and benefits

Briefly compare and contrast the four techniques for analyzing the costs and benefits of a proposed system. What do you see as particular strengths and weakness of each method?

  Write a function that will interchange the top polynomials

Write a function that will interchange the top two polynomials on the stack, and include this capability as a new command.

  What is the range of radio frequencies in technologies

What is the range of radio frequencies in wireless technologies? What are the pros and cons of the lowest and highest frequencies?

  Topological sorting method in c programming

how to prove the partial order R is a total order in discrete mathmetics and structures by topological sorting method in c programming

  Include how the information is laid out and what security

write a 2- to 3-page paper describing your companys intranet.include how the information is laid out and what security

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd