dimanche 30 mai 2021

How shared pointers leads to thread safety in multhreading

I understood the concept of shared pointers but not able to understand why this is used as thread safe. While searching, got to know that returning pointers or references is not thread safe, how? Also, how the use of shared pointers make it thread safe. Please elaborate or point me to some documentation or resources where I can read and understand this concept.

Aucun commentaire:

Enregistrer un commentaire