- 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.
推薦閱讀
- Cocos2d Cross-Platform Game Development Cookbook(Second Edition)
- C程序設計簡明教程(第二版)
- Lua程序設計(第4版)
- Reactive Programming With Java 9
- Kotlin從基礎到實戰
- Bootstrap 4 Cookbook
- Python深度學習原理、算法與案例
- 計算機應用基礎教程(Windows 7+Office 2010)
- C++編程兵書
- 交互式程序設計(第2版)
- Photoshop CC移動UI設計案例教程(全彩慕課版·第2版)
- Greenplum構建實時數據倉庫實踐
- Learning Shiny
- Java EE基礎實用教程
- Build Your Own PaaS with Docker