https://katyscode.wordpress.com/2013/08/17/c11-multi-core-programming-ppl-parallel-aggregation-explained/ In the first part of this series we looked at general multi-threading and multi-core programming concepts without getting into the meat of any r…
1. What is aspect-oriented programming?(什么是面向切面编程?) Aspects help to modularize cross-cutting concerns.(切面帮助我们模块化横切关注点)In short, a cross-cutting concern can be described as any functionality that affects multiple points of an application.(简单来说, 一个横切关注…
自己做的部分习题解答,因为时间关系,有些马虎,也不全面,欢迎探讨或指出错误 5.1 Consider the matrixaddition in Exercise 3.1. Can one use shared memory to reduce theglobal memory bandwidth consumption? Hint: analyze the elementsaccessed by each thread and see if there is any commonality b…
62. Unique Paths 方法一: 二位数组 而这道题是每次可以向下走或者向右走,求到达最右下角的所有不同走法的个数.那么跟爬梯子问题一样,需要用动态规划 Dynamic Programming 来解,可以维护一个二维数组 dp,其中 dp[i][j] 表示到当前位置不同的走法的个数,然后可以得到状态转移方程为:  dp[i][j] = dp[i - 1][j] + dp[i][j - 1] class Solution { public int uniquePaths(int m, i…
1. Questions: 1)EF.2)MVC/MVP/MVVM.3)page lifecyle. preInit,Init,InitCompleted,preLoad,Load,LoadCompleted,preRender,Render,RenderCompleted,Unload.4)db table index, non-index.5)union, union all.6)cache, session.7)abstract, interface.8)GC.9)http/https S…
https://katyscode.wordpress.com/2013/05/17/introduction-to-multi-threaded-multi-core-and-parallel-programming-concepts/ In this article I’m going to present a gentle and modernized introduction to multi-threaded and parallel programming. While there…
Copied From:https://computing.llnl.gov/tutorials/parallel_comp/ Author: Blaise Barney, Lawrence Livermore National Laboratory UCRL-MI-133316 Table of Contents Abstract Overview What is Parallel Computing? Why Use Parallel Computing? Who is Using Para…
近几年,业内对并行和并发积累了丰富的经验.有了较深刻的理解.但之前积累的大量教材,在当今的软硬件体系下.反而都成了负面教材.所以,有必要加强宣传,翻新大家的认知. 首先.天地倒悬,结论先行:当你须要并行时,优先考虑不须要线程间共享数据的设计,其次考虑共享Immutable的数据.最糟情况是共享Mutable数据.这个最糟选择.意味着最差的性能,最复杂啰嗦的代码逻辑,最easy出现难于重现的bug,以及不能測试预防的死锁可能性.在代码实现上.优先考虑高抽象级别的并行库(如C++11的future.…
这是2013年写的一篇旧文,放在gegahost.net上面  http://raison.gegahost.net/?p=97 March 11, 2013 General mistakes in parallel computing Filed under: concurrency,software — Tags: atomic, cocurrency, data race, dead lock, parellel — Raison @ 2:51 am (Original Work by P…
原文:Introduction to 3D Game Programming with DirectX 12 学习笔记之 --- 第十三章:计算着色器(The Compute Shader) 代码工程地址: https://github.com/jiabaodan/Direct12BookReadingNotes GPU已经被优化为处理单个地址或者连续地址(流操作)的大量内存数据:这和CPU的随机内存访问形成鲜明对比.因为顶点和像素可以独立处理,所以GPU被架构为大量的并行运算:比如NVIDIA…