Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
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
program.
Enjoy!
Jump to Line
Something went wrong with that request. Please try again.