The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Jul 2017 |
| Last Sign in: | 304 Weeks Ago, 3 Days Ago |
| Questions Answered: | 15833 |
| Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
Hi, need help with the quiz, for PART II solutions. Please provide answers showing work.
Discussions Wk6D
Â
Part I
 Explain the relationship among disk platters, tracks, sectors, and clusters.
Â
Solution:
Hard disks have Metal or glass disks called platters, which are divided into sectors. sectors are divisions of concentric circles called tracks. Groups of sectors are called clusters.
Â
Part II
Â
Given the following sequence of events (Interrupt requests IRQi), show which services routines the CPU is executing for times 0 to 100 ms. Consider that each IRQi- Interrupt service routine takes 15 ms to complete.
Time   Action                                                                           Â
  0 ms          Start of main program
10 ms  IRQ3 Interrupt request 3 is coming
20 ms  IRQ2 Interrupt request 2 is coming
45 ms  IRQ1 Interrupt request 1 is coming
60 ms  IRQ0 Interrupt request 0 is coming
Â
IRQ n has the lowest priority; IRQ 0 has the highest priority
Obs:
If IRQi is coming in the period of execution of IRQj and j has higher priority, then IRQi is postponed until IRQj is finished.
If IRQi is coming in the period of execution of IRQj and i has higher priority, then IRQi is started and IRQj is temporally suspended until IRQi is finished.
Â
Indication:
Please see here a similar example considering each IRQ service routines takes 20 ms to complete.
Â
Given the following sequence of events (Interrupt requests IRQi), show which services routines the CPU is executing for times 0 to 100 ms. Consider that each IRQi- Interrupt service routine takes 20 ms to complete.
Time   Action
  0 ms          Start of main program
10 ms  IRQ3 Interrupt request 3 is coming
20 ms  IRQ2 Interrupt request 2 is coming
45 ms  IRQ1 Interrupt request 1 is coming
60 ms  IRQ0 Interrupt request 0 is coming
Â
IRQ n has the lowest priority; IRQ 0 has the highest priority
Obs:
If IRQi is coming in the period of execution of IRQj and j has higher priority, then IRQi is postponed until IRQj is finished.
If IRQi is coming in the period of execution of IRQj and i has higher priority, then IRQi is started and IRQj is temporally suspended until IRQi is finished.
Â
Â
The solution for 20 ms is:
Â
Â

Â
Â
Â
More details is presented in the following figure:
Â

Â
Â
----------- Â ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly