Exercise: compare strategized locking at run time and compile time

Solution