#21 - Threading

implemented with simple locks, however they seam to get in each others
way when writing the status file. It takes a long time for the status
file to be written the first time and it is not updated every second.
However the app works and is about 3x faster