Initial content.

Author:halw
Date:2011-04-16T21:08:57.000000Z


git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@875 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
halw
2011-04-16 21:08:57 +00:00
parent 62d3322ad7
commit 8b24426bb0

View File

@@ -1,9 +1,18 @@
[[Property:title|Counter]]
[[Property:weight|-14]]
[[Property:uuid|ef5e7a86-3c2d-6a55-07b5-395f30bf8f96]]
{{UnderConstruction}}
{{Beta}}
=Description=
Unlike many of the other examples, this one is not really a problem to be solved. Rather, the Counter example uses multiple instances of the simple class <code>COUNTER</code> to explore various concurrent scenarios. Each instance of <code>COUNTER</code> has a unique identifier, a current value, and a speed. A counter's speed is that time that it takes to perform a single increment. You will see that some of the tests start multiple counters at different speeds. Class <code>COUNTER</code> has a procedure <code>run</code> which takes an integer as an argument, and increments the counter that many times. The example's root class contains the code to create counter instances and run the various tests.
=Highlights=