|
| |
![]() |
|
Next: Address
Translation Up: Nachos
Machine Previous: Interrupt
Management
Real-Time Clock InterruptsNachos provides a Timer object that simulates a real time clock, generating interrupts at regular intervals. It is implemented using the same event driven interrupt mechanism described above. Timer supports the following operations:
To add a bit of non-determinism to the system, argument doRandom specifies that the time between interrupts should be taken from a uniform interval between 1 and 2 * TimerTicks . The real-time clock can be used to provide preemption. |
Nachos Introduction Tutorials |
| © 1999-2008 - All rights reserved. CS tutorials™ and the logo are registered trademarks of CS tutorials. | |