Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要控制进程中所有 pthread 的 CPU 亲和性。一些 pthread 是由第三方库创建的。有没有办法枚举进程中所有现有 pthread 的 pthread_t 以便我可以在它们上调用 pthread_setaffinity_np() ?