[問題] 請問pthread_self這個函式功能?

看板C_and_CPP (C/C++)作者 (科科:))時間12年前 (2014/03/27 21:38), 編輯推噓0(002)
留言2則, 1人參與, 最新討論串1/1
開發平台(Platform): (Ex: VC++, GCC, Linux, ...) Linux 額外使用到的函數庫(Library Used): (Ex: OpenGL, ...) pthread 問題(Question): 請問pthread_self這個函式的功能是什麼? 我Man過卻看不太懂... 附上Man的資料 http://man7.org/linux/man-pages/man3/pthread_self.3.html 菇狗也真的找不到可以給我答案的點 希望有小例子可以理解這個函式真正的用意? 或是有資料網站可以參考也很棒 謝謝 :) 餵入的資料(Input): 預期的正確結果(Expected Output): 錯誤結果(Wrong Output): 程式碼(Code):(請善用置底文網頁, 記得排版) 補充說明(Supplement): -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.116.187.212 ※ 文章網址: http://www.ptt.cc/bbs/C_and_CPP/M.1395927537.A.A68.html

03/28 11:07, , 1F
返回 thread id
03/28 11:07, 1F

03/28 11:08, , 2F
和 pthread_create 拿到的那個相同
03/28 11:08, 2F
文章代碼(AID): #1JD2dnfe (C_and_CPP)
文章代碼(AID): #1JD2dnfe (C_and_CPP)