- 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.
推薦閱讀
- WSO2 Developer’s Guide
- Visual C
- SAS數據統計分析與編程實踐
- iOS應用逆向工程(第2版)
- Spring Boot進階:原理、實戰與面試題分析
- H5頁面設計:Mugeda版(微課版)
- Java程序設計入門
- Unity Character Animation with Mecanim
- Natural Language Processing with Python Quick Start Guide
- SwiftUI極簡開發
- 多媒體技術及應用
- Python應用開發技術
- Android應用程序設計
- Java Web 從入門到項目實踐(超值版)
- Building Microservices with .NET Core 2.0(Second Edition)