We can pass argument to a thread when using pthread_create /(not key_), if it is over using value per thread. If about using static storage, we use mutexes, so, what is it saying we use pthread_key_create? With example & emphasize on why it is born (application & need of it)? I heard it is useful for migrating single threded applications, but they still use mutexes. So, what is the point?
Thanks!