some notes about synchronisations (shared memory), code example and exercices