Chinaunix首页 | 论坛 | 博客
  • 博客访问: 33854
  • 博文数量: 8
  • 博客积分: 25
  • 博客等级: 民兵
  • 技术积分: 131
  • 用 户 组: 普通用户
  • 注册时间: 2010-06-27 20:12
文章分类

全部博文(8)

文章存档

2013年(8)

我的朋友

发布时间:2013-02-26 22:18:44

多线程队列(Concurrent Queue)的使用场合非常多,高性能服务器中的消息队列,并行算法中的Work Stealing等都离不开它。对于一个队列来说有两个最主要的动作:添加(enqueue)和删除(dequeue)节点。在一个(或多个)线程在对一个队列进行enqueue操作的同时可能会有一个(或多个)线程对这个队列进行dequeue操作。因为e.........【阅读全文】

阅读(1493) | 评论(0) | 转发(0)

发布时间:2013-02-20 23:34:14

#include <stdio.h>#include <stdint.h>/** * Copy 16 bytes from one location to another using optimised SSE * instructions. The locations should not overlap. * * @param s1 * Pointer to the destination of the data. * @param s2 * Pointer to the source data. */static inline voidmov16(uint.........【阅读全文】

阅读(2626) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册