atomic and mutexsamples