How to replace pthread_create during linkage
问题 I want to maintain a list of all running threads with some additional information about each thread. In this answer mentioned that it is possible to provide my own version of pthread_create and to link program with it. It is also important that I want to call original pthread_create in the end of my override version of it. Could someone explain in details how it could be done and/or provide some code example? 回答1: You can lookup the symbol for the original pthread_create-function by calling: