updated useTheDisk with wait and notify