討論串[問題] 關於 CRITICAL_SECTION 與執行緒同步
共 4 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 1→)留言2則,0人參與, 最新作者james732 (紫雁)時間17年前 (2008/04/25 06:09), 編輯資訊
0
0
1
內容預覽:
那如果我要用 _beginthreadex. (書上說 如果有用到C的標準函式 就要用 _beginthreadex). 那有沒有可以代替 WaitForMultipleObjects 的函式呢?. 這個地方我後來有發現 也謝謝你的提醒. 不是耶 我的電腦也是單核的. 而且連 hyper-threa

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者meltice (三億兩千萬大散戶)時間17年前 (2008/04/25 05:41), 編輯資訊
0
0
1
內容預覽:
我是用你的這個範例去做測試. http://studentweb.ncnu.edu.tw/94321016/rc1.txt. 首先. 我覺得_beginthread不太適合跟WaitForMultipleObjects一起使用. 因為_beginthread是CRT 而WaitForMultiple
(還有337個字)

推噓2(2推 0噓 1→)留言3則,0人參與, 最新作者james732 (紫雁)時間17年前 (2008/04/24 16:50), 編輯資訊
0
0
1
內容預覽:
謝謝您。剛剛去查了 MSDN,確實有這樣的敘述. You are also able to use the thread handle returned by _beginthreadex with. the synchronization APIs, which you cannot do wit
(還有5個字)

推噓1(1推 0噓 1→)留言2則,0人參與, 最新作者james732 (紫雁)時間17年前 (2008/04/24 14:56), 編輯資訊
0
0
3
內容預覽:
[本文轉錄自 C_and_CPP 看板]. 作者: james732 (紫雁) 站內: C_and_CPP. 標題: [問題] 關於 WinAPI 的 CRITICAL_SECTION. 時間: Thu Apr 24 21:58:40 2008. 我寫了一個程式 故意讓它發生 race cond
(還有425個字)
首頁
上一頁
1
下一頁
尾頁