Ada Concurrency
Sequential Programming Traditional programs are sequential, performing actions in a specified sequence. The classical pattern for sequential program execution is described as Input, Process, Output. This pattern may be performed once or it may be performed many times using either iteration or recursion. This pattern is very effective at doing one thing at a time for one user. The pattern exhibits serious limitations when dealing with multiple events overlapping in time, or with multiple users. For instance, the following sequential program calculates the sum of the digits in an integer. The program supports one user who enters a single number. 1 Simple Sequential Program ----------------------------------------------------------------------- -- calculate the sum of the digits of a positive integer ----------------------------------------------------------------------- with Ada.Text_IO; use Ada.Text_Io; with Ada.Integer_Text_IO; use Ada.Integer_Te...