pthread_self() is to get your own thread id. It doesn’t seem like you can get the thread id of the thread which spawned you unless it was given to you during spawning. Or is there a way?
pthread_self() is to get your own thread id. It doesn’t seem like you can
Share
No, all threads are equal in POSIX threads, there is no hierarchy. Even the thread that executes
mainhas no special role and can be terminated without effecting the others.