Presentation is loading. Please wait.

Presentation is loading. Please wait.

© Copyright 2004 Dr. Phillip A. Laplante 1 Kernel Architectures  Polled Loop  Synchronized Polled Loop  State-Based Model  Cyclic Executives  Foreground/Background.

Similar presentations


Presentation on theme: "© Copyright 2004 Dr. Phillip A. Laplante 1 Kernel Architectures  Polled Loop  Synchronized Polled Loop  State-Based Model  Cyclic Executives  Foreground/Background."— Presentation transcript:

1 © Copyright 2004 Dr. Phillip A. Laplante 1 Kernel Architectures  Polled Loop  Synchronized Polled Loop  State-Based Model  Cyclic Executives  Foreground/Background  The task control block model

2 © Copyright 2004 Dr. Phillip A. Laplante 2 Polled loop systems for(;;) {/* do forever */ if (packet_here) /* check flag */ { process_data();/* process data */ packet_here=0;/* reset flag */ }} Hardware causes event

3 © Copyright 2004 Dr. Phillip A. Laplante 3 Synchronized polled loops Switch bounce phenomenon. The switch is closed at time t0, signaling the event, however, due to the ringing of the signal and the edge triggered logic several false events could be indicated at times t1, and t2.

4 © Copyright 2004 Dr. Phillip A. Laplante 4 Synchronized polled loops for(;;){ /* do forever */ if(flag) /* check flag */ { pause(20); /* wait 20 ms */ process_event(); /* process event */ process_event(); /* process event */ flag=0; /* reset flag */ flag=0; /* reset flag */}} wait for switch to settle

5 © Copyright 2004 Dr. Phillip A. Laplante 5 Cyclic executives for(;;) {/* do forever */ check_for_keypressed(); check_for_keypressed(); move_aliens(); move_aliens(); check_for_keypressed(); check_for_keypressed(); check_for_collison() check_for_collison() check_for_keypressed(); check_for_keypressed(); update_screen(); update_screen();}} Cyclic executive for “Space Invaders.”

6 © Copyright 2004 Dr. Phillip A. Laplante 6 Foreground/background systems Foreground/background systems are the most common architecture for embedded applications. They involve a set of interrupt-driven or real-time processes called the foreground and a collection of non-interrupt driven processes called the background.

7 © Copyright 2004 Dr. Phillip A. Laplante 7 The task control block model A process state diagram as a partially defined finite state machine.


Download ppt "© Copyright 2004 Dr. Phillip A. Laplante 1 Kernel Architectures  Polled Loop  Synchronized Polled Loop  State-Based Model  Cyclic Executives  Foreground/Background."

Similar presentations


Ads by Google