Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 4c7167596d
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (11 sloc) 0.453 kb
This is a simple example on how to use tasks and protected objects in Ada to
solve the problem of counting 20 times to 1_000_000_000.
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 sequential.adb
$ time sequential
Substitute "sequential" with "concurrent" in the above to try the concurrent
Jump to Line
Something went wrong with that request. Please try again.