# 系統程式設計 - Atomic Operations [TOC] ## 課程內容 ### ECE 252 Lecture 21: Condition Variables, Monitors, and Atomic Types (35:31 ~ FIN) {%youtube fQku_AsePFQ %} ## 冷知識 ### `__atomic` 如果去翻 `gcc` 的[手冊](https://gcc.gnu.org/onlinedocs/gcc/_005f_005fsync-Builtins.html),會看到他說新的程式碼不應該使用這個,而是使用 `__atomic` 系列的 built-in functions > ...They should not be used for new code which should use the [‘__atomic’](https://gcc.gnu.org/onlinedocs/gcc/_005f_005fatomic-Builtins.html#g_t_005f_005fatomic-Builtins) builtins instead.