CS452 - Real-Time Programming - Fall 2008

Lecture 13 - Interrupts


Questions & Comments


Low-level primitive

This is what everything depends on

int AwaitEvent( int EventType );

What does it do?

  1. Blocks on an interrupt of the type specified
  2. When the interrupt occurs, may return one word of volatile data

Implementation notes

  1. Event may already have occurred
  2. AwaitEvent( ) can service the device.
  3. Need to think of priorities when you partition the work
  4. Kernel has interrupts turned off

How is it used?

Example: Clock Server

Provides a sleep prinitive
int Delay( int interval )

What does the kernel do?

Processor

Software


Return to: