加入a, b 兩個變數加入volatile 修飾後,即可確保a 之前的code 一定會在a 之前執行,b 之前的code 一定會在b 之前執行,因此thread t1 的CPU 指令會保證 ...
確定! 回上一頁