- Mastering C# Concurrency
- Eugene Agafonov Andrew Koryavchenko
- 160字
- 2021-07-09 21:26:08
Chapter 3. Understanding Parallelism Granularity
One of the most essential tasks when writing parallel code is to divide your program into subsets that will run in parallel and communicate between each other. Sometimes the task naturally divides into separate pieces, but usually it is up to you to choose which parts to make parallel. Should we use a small number of large tasks, many small tasks, or maybe large and small tasks at the same time?
Theoretically speaking, it does not matter. In case of an ideal computational device, it would have no overhead for creating a worker thread and distributing work between any numbers of threads. However, on a real CPU, this performance overhead is significant and it is very important to take this into account. The right way to split your program into parallel parts is the key to writing effective and fast programs. In this chapter, we are going to review this problem in detail.
- Learning NServiceBus(Second Edition)
- 流量的秘密:Google Analytics網(wǎng)站分析與優(yōu)化技巧(第2版)
- Learn TypeScript 3 by Building Web Applications
- 從零開始:數(shù)字圖像處理的編程基礎(chǔ)與應(yīng)用
- TypeScript Blueprints
- 匯編語言程序設(shè)計(jì)(第3版)
- HTML 5與CSS 3權(quán)威指南(第3版·上冊)
- Windows Embedded CE 6.0程序設(shè)計(jì)實(shí)戰(zhàn)
- 軟件供應(yīng)鏈安全:源代碼缺陷實(shí)例剖析
- 響應(yīng)式Web設(shè)計(jì):HTML5和CSS3實(shí)戰(zhàn)(第2版)
- R數(shù)據(jù)科學(xué)實(shí)戰(zhàn):工具詳解與案例分析
- 鴻蒙OS應(yīng)用編程實(shí)戰(zhàn)
- C++程序設(shè)計(jì)教程
- Mastering Android Studio 3
- Learning Unreal Engine Game Development