
多核编程
银灯玉箫
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
libprocess-future and promise
The Future and Promise primitives are used to enable programmers to write asynchronous, non-blocking, and highly cocurrent software. Promise A Promise is not copyable or assignable, in order to encourage strict ownership rules between processes. You can g原创 2020-10-15 19:58:18 · 171 阅读 · 0 评论 -
《多处理器编程的艺术》学习笔记一:确保线程互斥、公平地并行,以及解决死锁问题的经典思想
第一部分: 什么是互斥(Mutual Exclusion)? 顾名思义,互斥就是相互排斥。换句话说,我在做一件事情时,别人不能做。一个生活中的例子可以是银行中客户排队办手续,一个窗口的营业员在某一时间段只能服务一个客户,其他客户在当前窗口客户未办完业务之前,不能插在当前客户办理业务过程中同时与营业员交流。映射到计算机程序中,一个窗口的营业员相当于多个线程需要访问的共同代码段或者共享数据,为了原创 2016-09-23 12:58:05 · 732 阅读 · 0 评论 -
Shared-Memory Programming with Pthreads
In shared-memory programming, an instance of a program running on a processor is usually called a thread(unlike MPI, where it’s called a process).POSIX is a standard for Unix-like operating systems–for原创 2018-01-16 16:39:45 · 217 阅读 · 0 评论