Banner showing base of Eiffel tower

Github

Download version 1.4.8: Windows or Linux

Example: Concurrency Demonstration

This project has 13 classes.

ECF: concurrency-demo.ecf

Demonstration of classes that make the classic multi-threading ISE library thread.ecf easier to use.

  1. el_concurrency -horse_race An animated version of the classic concurrency horse-racing exercise.
  2. el_concurrency -work_distributer demonstrates the calculation of integrals for arbitrary functions distributed across a specified number of threads

Directory: example/concurrency/source

[ . ]

. /apps

. /horse-race

. /integral-calc

. /integral-calc/command

[ . ]

APPLICATION_ROOT

Root for two concurrency demonstrations:

  1. HORSE_RACE_APP
  2. SINE_WAVE_INTEGRATION_APP

BUILD_INFO

Build specification

Further Information

Click on class link to see notes.

apps

HORSE_RACE_APP

Simulates a horse race as a concurrency exercise using class EL_PROCEDURE_DISTRIBUTER.

Further Information

Click on class link to see notes.

SINE_WAVE_INTEGRATION_APP

Example program to demonstrate use of EL_FUNCTION_DISTRIBUTER and EL_PROCEDURE_DISTRIBUTER for distributing the work of executing agent routines over a maximum number of threads.

Further Information

Click on class link to see instructions.

horse-race

HORSE

Horse

integral-calc

INTEGRAL_MATH

Integral math

INTEGRATION_COMMAND_OPTIONS

Test work distributer command options

SINE_WAVE

Sine wave created by adding together a list of multiplicands for x

integral-calc/command

DISTRIBUTED_FUNCTION_INTEGRATION

Distributed integration using class EL_FUNCTION_DISTRIBUTER

DISTRIBUTED_INTEGRATION_COMMAND

Integration distributed over multiple threads

DISTRIBUTED_PROCEDURE_INTEGRATION

Distributed integration using class EL_PROCEDURE_DISTRIBUTER

INTEGRATION_COMMAND

Abstraction to perform integral calculations on a function

Further Information

Click on class link to see descendants.

SINGLE_THREAD_INTEGRATION

Single thread integration of function