Banner showing base of Eiffel tower

Github

Download version 1.4.8: Windows or Linux

Example: Concurrency Demonstration

This project has 11 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

[ . ]

APPLICATION_ROOT

Root for two concurrency demonstrations:

  1. HORSE_RACE_APP
  2. WORK_DISTRIBUTER_TEST_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.

WORK_DISTRIBUTER_TEST_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

FUNCTION_INTEGRAL

Function integral

INTEGRAL_MATH

Integral math

PROCEDURE_INTEGRAL

Procedure integral

ROUTINE_INTEGRAL

Routine integral

SINE_WAVE

Sine wave

TEST_WORK_DISTRIBUTER_COMMAND_OPTIONS

Test work distributer command options