This project showcases a producer-consumer model using mutual exclusions (Mutex) using C++ in order to draw the well known Barnsley fern (see resulting image below). Therein, the computational workload can distributed among several workers in order to speed up the entire process. The number of workers is selectable and can be adjusted according to the computational hardware at hand.
-
CMake - Platform for build automation, testing and packaging using a compiler-independent method
sudo apt-get update
sudo apt-get install cmake gcc clang gdb built-essential -
imagemagick library and dependencies in order to be able to work with PNG images
sudo apt-get install imagemagick libpng-dev zlib1g-dev
In order to make use of the code, please invoke make compile in the root directory of this repository. Subsequently:
cd src/cd build/./BarnselyFern
