Thursday, May 17, 2012

RTOS

Real time OS implements mechanism to support low latency to requests (mainly from HW) Used in critical system.
  • Multi-tasking
  • Preemtion (time sharing & context switching)
  • Interrupt handler == ISR (interrupt service routine) <--> Polling
  • Mutual exclusion (semaphore)
Dead lock/ Example: circular waiting
A <- B <- C and then C <- A


ISR
(From Wiki) A hardware interrupt causes the processor to save its state of execution and begin execution of an interrupt handler.
Software interrupts are usually implemented as instructions in the instruction set, which cause a context switch to an interrupt handler similar to a hardware interrupt.

No comments:

Post a Comment