next up previous contents
Next: Read, Write and Execute Up: Major Differences between Cosmos Previous: Regulator System.

CPU-time Allocation and Energy Tokens.

In Cosmos, each cell has to pay one energy token for every instruction it executes. Cells must collect these tokens from the environment, and store them in their Energy Token Store. A cell dies when the number of tokens in its Energy Token Store falls below a threshold (defined by the parameter ets_lower_threshold). Furthermore, if the population size exceeds a threshold (defined by the parameter max_cells_per_process), cells are killed off stochastically, but those with fewer energy tokens in their Energy Token Store have a greater chance of being killed. A cell can therefore exert considerable influence over its own longevity, via its success at collecting energy tokens from the environment.

In contrast, programs in Tierra have little control over their longevity. As individual Tierran programs have no notion of energy levels, a separate `reaper queue' mechanism is employed to govern cell death. Programs can move up the queue if they cause error conditions during execution (see Section 3.2.1), but in general the probability of death increases with age [Ray 91]. The reaper queue therefore effectively imposes an upper limit on the lifespan of programs, whereas there is no theoretical upper limit in Cosmos.

Additionally, the energy token scheme in Cosmos introduces the idea of a competition for the available energy, which is missing in Tierra. Furthermore, if the parameter energy_collection_scheme is set to shared, cells may extract energy tokens from their neighbours. In this situation, a cell is a potential energy resource for other cells, and, if environmental energy were scarce, it would become advantageous for a cell to kill its neighbours by draining their energy. If cells could defend themselves against such attacks, some sort of coevolutionary process might arise from such interactions.


next up previous contents
Next: Read, Write and Execute Up: Major Differences between Cosmos Previous: Regulator System.
Tim Taylor
1999-05-29