码迷,mamicode.com
首页 >  
搜索关键字:queue    ( 8888个结果
python类库32[多进程通信Queue+Pipe+Value+Array]
多进程通信queue和pipe的区别: pipe用来在两个进程间通信。queue用来在多个进程间实现通信。 此两种方法为所有系统多进程通信的基本方法,几乎所有的语言都支持此两种方法。1)Queue & JoinableQueuequeue用来在进程间传递消息,任何可以pickle-able的对象都可...
分类:编程语言   时间:2014-07-07 14:49:49    阅读次数:321
Python守护进程(多线程开发)
#!/usr/bin/pythonimport sys,time,json,loggingimport Queue, threading, datetimefrom lib.base.daemon import Daemonfrom lib.queue.httpsqs.HttpsqsClient i...
分类:编程语言   时间:2014-07-07 11:30:23    阅读次数:276
GCD
异步技术有两个:Grand Central Dispatch(GCD):系统管理线程,你不需要编写线 程代码。只需定义想要执行的任务,然后添加到适当的 dispatch queue。GCD 会负责创建线程和调度你的任务。系统直接提供线 程管理,比应用实现更加高效。Operation Queue:Ob...
分类:其他好文   时间:2014-07-03 20:27:30    阅读次数:178
[Android]Volley源码分析(一)
一. 如何使用Volley?1. 首先定义一个RequestManager类,用来在Android程序启动时对Volley进行初始化。RequestManager为单例类,因为只有在程序启动时调用,所以不需要考虑并发问题。 1 /** 2 * Manager for the queue 3 */.....
分类:移动开发   时间:2014-07-03 20:11:31    阅读次数:210
poj1979 Red and Black
1 //Accepted 164 KB 0 ms 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 queue qx,qy; 8 int n,m; 9 int ans;10 int d[][...
分类:其他好文   时间:2014-07-01 22:48:49    阅读次数:194
算法纲要
基本枚举、贪心、递归、分治、递推、模拟STL(pair、vector、set、map、queue、string、algorithm)构造、位运算、常数优化数据结构队列、堆、栈、链表排序(插入、冒泡、快速、归并、堆、桶、基数)二分查找、散列表并查集、哈夫曼树排序二叉树、左偏树、平衡树(Splay/Tr...
分类:其他好文   时间:2014-07-01 19:09:02    阅读次数:193
NSURLConnection的异步请求方式
iOS5.0 SDK NSURLConnection类新增的sendAsynchronousRequest:queue:completionHandler:方法sendAsynchronousRequest可以很容易地使用NSURLRequest接收回调,完成http通信。1. post数据 1 -...
分类:其他好文   时间:2014-07-01 17:34:35    阅读次数:212
LinkedBlockingQueue多线程测试
public class FillQueueThread extends Thread { private Queue queue; public FillQueueThread(Queue queue){ this.queue = queue; } @Override public void run() { while(true){ try { boolean a...
分类:数据库   时间:2014-07-01 11:20:37    阅读次数:332
ActiveMQ的receiveNoWait
Pending Queue Size ­ The number of messages in the queue that have yet to bedelivered to any clientDispatched Counter ­ The number of message in the q...
分类:其他好文   时间:2014-07-01 00:23:41    阅读次数:268
HDOJ 1297 Children’s Queue
JAVA大数.... Children’s Queue Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 10390    Accepted Submission(s): 3333 Problem Descrip...
分类:其他好文   时间:2014-06-30 18:26:44    阅读次数:203
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!