- Hands-On GPU:Accelerated Computer Vision with OpenCV and CUDA
- Bhaumik Vaidya
- 128字
- 2021-08-13 15:48:26
Thread synchronization
Up until now, whatever examples we have seen in this book had all threads independent of each other. But rarely, in real life, do you find examples where threads operate on data and terminate without passing results to any other threads. So there has to be some mechanism for threads to communicate with each other, and that is why the concept of shared memory is explained in this section. When many threads work in parallel and operate on the same data or read and write from the same memory location, there has to be synchronization between all threads. Thus, thread synchronization is also explained in this section. The last part of this section explains atomic operations, which are very useful in read-modified write conditions.
推薦閱讀
- Learning Neo4j
- JavaScript全程指南
- 精通JavaScript+jQuery:100%動態網頁設計密碼
- Access 數據庫應用教程
- 無代碼編程:用云表搭建企業數字化管理平臺
- Java Web基礎與實例教程(第2版·微課版)
- 零基礎學Java程序設計
- Learning Apache Kafka(Second Edition)
- Visual C#.NET程序設計
- Hands-On Nuxt.js Web Development
- 超簡單:Photoshop+JavaScript+Python智能修圖與圖像自動化處理
- Arduino電子設計實戰指南:零基礎篇
- PowerDesigner 16 從入門到精通
- JavaScript悟道
- C/C++代碼調試的藝術(第2版)