获取线程id()

参考文章:

  https://blog.csdn.net/zhllxt/article/details/80527941

  1)syscall() 2)getpid() getttid() 3)std::thread::this_thread::get_id()

原文地址:https://www.cnblogs.com/pengtangtang/p/13598048.html