作者查詢 / ManOfSteel

總覽項目: 發文 | 留言 | 暱稱
作者 ManOfSteel 在 PTT [ C_and_CPP ] 看板的留言(推文), 共20則
限定看板:C_and_CPP
首頁
上一頁
1
下一頁
尾頁
[問題] bool變數一寫多讀需要鎖嗎
[ C_and_CPP ]20 留言, 推噓總分: +4
作者: SFGEX - 發表於 2026/02/11 21:04(2天前)
1FManOfSteel: 我想請問一下,你是怎麼知道bool型別支援single write02/12 00:10
2FManOfSteel: 和 multiple load?02/12 00:10
3FManOfSteel: 參考這個網頁:https://en.cppreference.com/w/c/lang02/12 00:19
4FManOfSteel: uage/memory_model.html02/12 00:19
5FManOfSteel: 這一段話:When an汢valuation漑f an expression writ02/12 00:20
6FManOfSteel: When an汢valuation of an expression writes to a me02/12 00:21
7FManOfSteel: and another evaluation reads or modifies the same02/12 00:21
8FManOfSteel: memory location, the expressions are said to氲onf02/12 00:21
9FManOfSteel: 所以data race 是只要有一個 write 搭配其它 read 或w02/12 00:25
10FManOfSteel: rite 就會是發生。02/12 00:25
[問題] CUDA 程式
[ C_and_CPP ]21 留言, 推噓總分: +7
作者: goodzey - 發表於 2023/05/18 23:38(2年前)
4FManOfSteel: 每一行600個數據,對嗎?05/19 00:07
5FManOfSteel: 然後600個數據相加?05/19 00:10
6FManOfSteel: 喔,我懂了,是800個數據相加XD05/19 00:14
7FManOfSteel: data[600*(j + bdx) +tdx] access資料會超出邊界吧?05/19 00:21
8FManOfSteel: blockidx最大不是可以到39?05/19 00:22
[討論] 動態記憶體配置是不是常常會出問題啊
[ C_and_CPP ]48 留言, 推噓總分: +20
作者: jasonokc0220 - 發表於 2021/12/05 16:16(4年前)
29FManOfSteel: 請問一下K大為什麼embedded的real mode會很常見呢?12/23 00:02
[問題] C語言初學觀念請益
[ C_and_CPP ]15 留言, 推噓總分: +4
作者: how0919 - 發表於 2021/11/06 00:30(4年前)
9FManOfSteel: 參考cppreference的網站,會比較知道scanf的性質11/06 19:10
10FManOfSteel: https://i.imgur.com/O6E57Kp.jpg11/06 19:12
11FManOfSteel: 手邊剛好有筆記QQ11/06 19:13
[心得] CUDA 至 AMD HIP 分享
[ C_and_CPP ]31 留言, 推噓總分: +6
作者: mikemike1021 - 發表於 2021/08/18 21:43(4年前)
1FManOfSteel: 推08/19 02:01
首頁
上一頁
1
下一頁
尾頁