A simple slot machine that runs with three threads