Suppose the processor scans the keyboard every 0.5 second. How many times will the keyboard be checked in a 1-hour interval?

system is controlled by an operator through commands entered from a keyboard. The average number of commands entered in a 1-hour interval is 80.

 

  1. Suppose the processor scans the keyboard every 0.5 second. How many times will the keyboard be checked in a 1-hour interval?

 

 

  1. By what fraction would be the number of processor visits to the keyboard be reduced if interrupt-driven I/O were used? Calculation of the fraction: if the interrupt-driven I/O requires x number of visits, while the processor requires y number of visits in (a), the fraction is calculated: 1 – (x/y).

 

 

 

Problem 2. Interrupt-driven I/O ()

 

Consider a system employing interrupt-driven I/O for a particular device that transfers data at an average of 2000 bytes/sec on a continuous basis.

 

  1. Assume that interrupt processing takes about 200 usec (i.e., the time to jump to the interrupt service routine (ISR), execute it, and return to the main program). Determine what fraction of processor time is consumed by this I/O device if it interrupts for every byte.

 

 

  1. Now assume that the device has two 8-byte buffers and interrupts the processor when one of the buffers is full. Naturally, interrupt processing takes longer because the ISR must transfer 8 bytes. While executing the ISR, the processor takes about 10 usec for the transfer of each byte. Determine what fraction of processor time is consumed by this I/O device in this case.

 

1

 

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more
Open chat
1
Hello. Can we help you?