CS322: Concurrent Processes and Programming

Concurrency in Ada

  1. Ada allows concurrency to be specified by a language construct known as a task.

  2. Communication between concurrent tasks is a more difficult problem.

  3. An Ada task has a two part declaration: a task specification and a task body.

  4. A rendezvous occurs when one task invokes an entry point of another task.

  5. With this background, we are ready to look at a complete implementation of the producer and consumer problem (with a buffer) in Ada.

  6. We can also look at the sorting race we demonstrated earlier (which is totally correct.) Source Code.


$Id: concurrency9.html,v 1.3 1998/03/03 23:42:05 senning Exp $

These notes were written by Prof. R. Bjork of Gordon College. In February 1998 they were edited and converted into HTML by J. Senning of Gordon College.