討論串[問題] reentrant vs. thread-safety
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓4(4推 0噓 11→)留言15則,0人參與, 最新作者descent (「雄辯是銀,沉默是金」)時間12年前 (2013/11/20 11:16), 編輯資訊
0
0
2
內容預覽:
pthread 多緒程式設計 (p237) 關於這問題的描述,. 簡單提一下 (詳細請參閱該書籍):. reentrant function: 不可使用 static, global data. thread safe: 使用 mutex 來保護 global data, 而 data 不一定是變數
(還有237個字)

推噓0(0推 0噓 4→)留言4則,0人參與, 最新作者nikeasyanzi (nikeasyanzi)時間12年前 (2013/11/19 01:59), 編輯資訊
0
0
4
內容預覽:
這比較像是OS的問題. 但還是PO上來問問. 想請問一下 reentrant vs. thread-safety 的差別. 小弟我上網去看了一下 http://0rz.tw/dwWTD. 但我困惑的是 網頁給出如下說明. An operation is re-entrant if it can be
(還有1305個字)
首頁
上一頁
1
下一頁
尾頁