diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-08-27 22:06:44 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-08-27 22:06:44 +0100 |
commit | 65bb0e0f66a2218b59c9537436f1f75166994651 (patch) | |
tree | 23099f4e3e791554352154a66f56dc893c24f221 /file-handler.c | |
parent | 2d11304ab4726d3904344d908c93c84a76391707 (diff) | |
download | abelian-sandpile-65bb0e0f66a2218b59c9537436f1f75166994651.tar.gz abelian-sandpile-65bb0e0f66a2218b59c9537436f1f75166994651.tar.bz2 abelian-sandpile-65bb0e0f66a2218b59c9537436f1f75166994651.zip |
(main)+kill threads when avalanche has completed
After the so-called "avalanche", where the fractal has finished
forming as there are no more candidates for toppling, we no longer
need the threads to be working. As an intensive operation, it makes
no sense to continue processing when we are sure there is no further
dynamic behaviour possible.
Using a tick based solution, every DELTA ticks we check if the
avalanche is completed. If so, we clean up all the threads AND ensure
that we no longer need to be checking for avalanches.
Diffstat (limited to 'file-handler.c')
0 files changed, 0 insertions, 0 deletions