随笔分类 -  并发编程,并行编程

并发(concurrency)与 并行(parallelism),OpenMP
摘要:"Getting Started with OpenMP " Abstract As you probably know by now, to get the maximum performance benefit from a processor with Hyper Threading Tech 阅读全文
posted @ 2017-11-25 00:37 scott_h 阅读(145) 评论(0) 推荐(0) 编辑
摘要:今天实现了一个 "C 用的 coroutine 库" . 我相信这个东西已经被无数 C 程序员实现过了, 但是通过 google 找了许多, 或是接口不让我满意, 或是过于重量. 在 Windows 下, 我们可以通过 fiber 来实现 coroutine , 在 posix 下, 有更简单的... 阅读全文
posted @ 2015-11-09 21:13 scott_h 阅读(528) 评论(0) 推荐(0) 编辑
摘要:"Cplusplus Concurrency In Practice 什么是并发" "剖析为什么在多核多线程程序中要慎用volatile关键字?" "浅析C++多线程内存模型" "漫谈C++11多线程内存模型 " "... 阅读全文
posted @ 2015-11-09 20:53 scott_h 阅读(315) 评论(0) 推荐(0) 编辑
摘要:OS: windows "Process and Thread Functions" "windows同步方式 传送门" PS. include Fiber "thread_functions" "CreateThread" https://technet.microsoft.com/zh cn/i 阅读全文
posted @ 2015-11-09 14:40 scott_h 阅读(462) 评论(0) 推荐(0) 编辑
摘要:设置Processor Affinity 作用: 1.进程和线程的亲缘性(affinity),使进程或线程在指定的CPU(核)上运行.(比如程序A,在第4个核心上运行) 2.设置进程 或者 线程, 使用CPU的数量(比如程序A,在第1,2,3个(共3个核心)核心上运行) 3.CPU负载均衡 ... 阅读全文
posted @ 2015-11-09 14:27 scott_h 阅读(1587) 评论(0) 推荐(0) 编辑
摘要:http://blog.chinaunix.net/uid 21084809 id 2215376.html "Processes, kernel threads, user threads, and fibers" "Process" 1.9.2 进程的创建 父进程的数据空间、堆栈空间都会给... 阅读全文
posted @ 2015-11-04 18:15 scott_h 阅读(704) 评论(0) 推荐(0) 编辑
摘要:参考《windwos 核心编程》http://baike.baidu.com/view/2808915.htm1.事件(Event) 特点:适用与多进程,多线程,用户2.互斥量(Mutex) 特点:多线程 互斥锁的功能和临界区域很相似。 区别是:Mutex所花费的时间比Critical Sec... 阅读全文
posted @ 2015-04-21 19:30 scott_h 编辑

点击右上角即可分享
微信分享提示