随笔分类 -  [113] 多线程编程

《C++ concurrency in action》 读书笔记 -- Part 4 第五章 C++的多线程内存模型 (1)
摘要:《C++ concurreny in action》 第五章 C++的内存模型和原子操作 5.1 Memory model basics (内在模型基础) Memory model 涉及两个方面:structural 和 concurrency structural 是基础,主要是对象的布局 5.1.1 Objects and memory location The C++ Standa... 阅读全文

posted @ 2013-04-30 00:57 唐风思琪 阅读(3514) 评论(4) 推荐(2)

《C++ concurrency in action》 读书笔记 -- Part 2 第三章 线程间的数据共享
摘要:唐风 www.cnblogs.com/liyiwen 《C++ concurreny in action》 第三章 sharing data between threads 3.1 线程间共享数据的“问题” invariants 被破坏(比如说一个读一个写) 3.1.1 race conditions 条件竞争是: In concurrency, a race condition is anything where the outcome depends on the relative ordering of execution of operations on two o... 阅读全文

posted @ 2013-04-17 23:43 唐风思琪 阅读(2643) 评论(0) 推荐(1)

《C++ concurrency in action》 读书笔记 -- Part 1
摘要:第一章 Why use concurrency,There are two main reasons to use concurrency in an application: separation of con-cerns and performance.(这句写得很精辟:) 我:分离实现逻辑,然后使用“状态迁移表”这种消息驱动的方式,用在APP的设计上非常的方便。 什么时候不要使用con... 阅读全文

posted @ 2013-04-15 23:18 唐风思琪 阅读(2949) 评论(0) 推荐(0)

导航