NatWest Group interview question

difference between lock and synchronisation