码迷,mamicode.com
首页 >  
搜索关键字:queue    ( 8888个结果
skynet源码学习 - 从全局队列中弹出/压入一个消息队列过程
学习云风的skynet源码,简单记录下。 void skynet_globalmq_push(struct message_queue * queue) { struct global_queue *q= Q; uint32_t tail = GP(__sync_fetch_and_add(&q->tail,1)); // only one thread can set the sl...
分类:Web程序   时间:2014-08-25 21:11:04    阅读次数:499
HDU-4973-A simple simulation problem.(二分+树状数组)
Problem Description There are n types of cells in the lab, numbered from 1 to n. These cells are put in a queue, the i-th cell belongs to type i. Each time I can use mitogen to double the cells in ...
分类:其他好文   时间:2014-08-25 01:13:03    阅读次数:321
HDU-4937-A simple simulation problem.(线段树)
Problem Description There are n types of cells in the lab, numbered from 1 to n. These cells are put in a queue, the i-th cell belongs to type i. Each time I can use mitogen to double the cells in ...
分类:其他好文   时间:2014-08-25 01:12:13    阅读次数:273
[svn] 数据库操作残留,无法进行操作的解决方法
WINDOWS环境下的解决方法: 1: 下载sqlite3数据库工具,放置于SVN的同级目录 2: CMD路径转移到Sqlite3目录 3: 残留操作选择:sqlite3 .svn/wc.db "select * from work_queue" 4: 残留操作删除:sqlite3 .svn...
分类:数据库   时间:2014-08-22 23:50:49    阅读次数:461
基于System V Message queue的PHP消息队列封装
System V Message queue 是一种进程通信(IPC)的方式,方便实现生产者-消费者模型,单个或多个生产者向队列中写入消息,多个生产者再从队列中获取消息进行处理。 项目地址:https://github.com/huyanping/Zebra-PHP-Framework 该Wrapper支持: 进程通信 设置最大队列容量(字节单位) 获取当前队列数量 修改队列部分属性...
分类:Web程序   时间:2014-08-22 17:56:59    阅读次数:180
java集合之Set
java集合大致上可分为:set,list,map三种体系,其中set代表无序不可重复的集合,list代表有序可重复的集合,map代表具有映射关系的集合。后来又增加一种Queue体系集合,代表一种队列的集合实现。set和list接口都实现了collection接口使用Iterator接口遍历集合元素...
分类:编程语言   时间:2014-08-22 16:10:19    阅读次数:257
POJ训练计划3159_Candies(差分约束)
解题报告 题目传送门 题意: 先输入n,m 接下来m行,每行输入A,B,C 输入A B C,表示孩子B最多比孩子A多C块蛋糕,问孩子1与孩子N最多相差多少块蛋糕! 思路: 求解b-a 源点为1 spfa+queue超时,spfa+queue+slf还超时,用stack却过了。 #include #include #include #include #in...
分类:其他好文   时间:2014-08-22 14:29:48    阅读次数:178
HDU 4974 A simple water problem 模拟(水
水题。 #include #include #include #include using namespace std; typedef long long ll; priority_queue q; int main() { int T, cas = 0; scanf("%d", &T); while(T-- > 0) { int n; ...
分类:其他好文   时间:2014-08-21 19:27:14    阅读次数:196
《数据结构与算法分析》学习笔记(五)——队ADT
一、队的概念 队列也是一种表,但是是一种受限的表,只允许从一端插入,另一端山粗的表。 二、队列的数组实现 #define QMAXSIZE 100typedef int Position;typedef int QElement;typedef struct queue{ QElement Els[...
分类:其他好文   时间:2014-08-21 18:53:24    阅读次数:186
oracle修改NLS_CHARACTERSET字符集
sqlplus "/ as sysdba"SQL> SHUTDOWN IMMEDIATE;SQL> STARTUP MOUNT;SQL> ALTER SYSTEM ENABLE RESTRICTED SESSION;SQL> ALTER SYSTEM SET JOB_QUEUE_PROCESSES=...
分类:数据库   时间:2014-08-21 16:33:54    阅读次数:288
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!