Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Another very simple example on how to use Ada tasks.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 concurrent
Octocat-spinner-32 sequential
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README
README
This is a simple example on how to use tasks and protected objects in Ada to
solve the problem of emptying a Pez dispenser. Yea, I know it's not the most 
common of problems, but there you have it.

The sequential program solves it sequentially while the concurrent program
solves it by starting a bunch of concurrent workers.

To compile and execute:

   $ cd sequential
   $ gnatmake -P sequential.gpr
   $ time sequential

Substitute "sequential" with "concurrent" in the above to try the concurrent
program.

Enjoy!
Something went wrong with that request. Please try again.