cudaStreamSynchronize vs cudaDeviceSynchronize across threads

So the slides at

Explain concurrency and also indicate the problem here. Error between keyboard and chair.