码迷,mamicode.com
首页 >  
搜索关键字:rabbitmq queue    ( 12324个结果
uva 133 - The Dole Queue
In a serious attempt to downsize (reduce) the dole queue, The New National Green Labour Rhinoceros Party has decided on the following strategy. Every ...
分类:其他好文   时间:2014-07-18 20:15:42    阅读次数:234
【数据结构】优先队列和堆
优先队列(priority queue)对于一般的队列是在队列的尾部添加数据,在头部删除,以便先进先出。而优先队列中的每个元素都有一个优先级,每次将一个元素放入队列中,而每次出队时都是将优先级最大的那个元素出队,称为高进先出(largest-in,first-out)。优先队列必须实现以下几个操作1...
分类:其他好文   时间:2014-07-18 18:35:23    阅读次数:287
rabbitmq之HTTP access denied: user 'guest' - User can only log in via localhost问题
问题:昨天安装rabbitmq(3.3.4版本)服务,并启用rabbitmq_management插件去管理rabbitmq服务,但是在访问管理界面使用guest用户登录时出现login failed错误。到服务器上查询日志显示出现错误的原因是:HTTP access denied: user 'g...
分类:数据库   时间:2014-07-18 17:29:38    阅读次数:642
Producter and Consumer
1 package pinx.thread; 2 3 import java.util.LinkedList; 4 import java.util.Queue; 5 6 public class ProducerConsumer { 7 8 Storage stor...
分类:其他好文   时间:2014-07-18 15:19:28    阅读次数:192
搜索联系人是去掉拼音中的空格
在搜索联系人时,因为存储进数据库的字段中含有空格,造成在按拼音搜索联系人的时候也必须加入空格,很不方便,所以今天请教大神,在从解析数据的时候就将名字转为拼音,去掉空格,所以在解析时候使用如下代码红色标记的那段:- (void)syncContact{ dispatch_queue_t queue ....
分类:其他好文   时间:2014-07-18 12:10:57    阅读次数:180
堆和堆排序
堆有两种: max-heap 和 min-heap. Max-heap 一般用来排序,Min-heap 用来实现 priority queue.max-heap的定义是:for each i: A[parent(i)] >= A[i]min-heap: for each i: A[parent(i)...
分类:其他好文   时间:2014-07-18 10:23:12    阅读次数:180
使用数据库构建高性能队列用于存储订单、通知和任务(转)
英文原文: http://www.codeproject.com/Articles/110931/Building-High-Performance-Queue-in-Database-for-st译文:http://www.oschina.net/translate/building-high-p...
分类:数据库   时间:2014-07-16 17:47:26    阅读次数:379
用MongoDB取代RabbitMQ(转)
原文:http://blog.nosqlfan.com/html/3223.htmlRabbitMQ是当成应用比较广泛的队列服务系统,其配套的客户端和监控运维方案也比较成熟。BoxedIce的队列服务从今年四月开始从RabbitMQ切换到了MongoDB上,并一直稳定运行至今,下面是BoxedIce...
分类:数据库   时间:2014-07-16 17:45:32    阅读次数:225
0715-----C++Primer听课笔记----------疯狂封装之生产者与消费者
1.程序框架分析:a)首先将mutex, condition, queue 封装成各自的类,方便对外提供接口函数,这里要注意 condition的封装,一个条件变量和一把锁是一起用的,因此在初始化 condition 对象的时候要用一个 mutex 对象去初始化,在pthread_cond_wait...
分类:编程语言   时间:2014-07-16 17:43:12    阅读次数:203
uva133-The Dole Queue
The Dole Queue  In a serious attempt to downsize (reduce) the dole queue, The New National Green Labour Rhinoceros Party has decided on the following strategy. Every day all dole applicants...
分类:其他好文   时间:2014-07-16 08:38:31    阅读次数:311
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!