Solution to Task 6.1.7 Note the order in which the locks are taken. Updated for mbed os 5.4

Fork of Task617Solution-mbedos54 by Stage-1 Students SoCEM