检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
出 处:《计算机与数字工程》2013年第11期1853-1855,共3页Computer & Digital Engineering
摘 要:原子操作是一种简单高效的线程同步方法,C++11标准将原子操作加入了标准库。首先介绍原子操作的基本原理与实现机制,然后介绍了C++的多线程内存模型与内存屏障以及C++标准库中的原子操作基本方法、行为与使用,接下来使用原子操作实现了简单的生产者消费者模型,最后说明原子操作优缺点。Atomic operation is a simple and efficient thread synchronization methods, the atomic operation has been added to the stand- ard library of C++. First, the basic principles and implementation mechanisms of atomic operations is introduced, then, C++ multithread- ed memory model, the memory barrier, basic method of atomic operations, behavior and use of atomic operations in C++ standard library are described. Then use atomic operations to achieve a simple model of producers and consumers. At last shows advantages and disadvantages of atomic operation.
分 类 号:TP391[自动化与计算机技术—计算机应用技术]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:18.117.250.210