最近遇到一个问题.就是
我在io线程里不断的把一个函数调用放到队列里
然后ruby线程就不断的从这个队列里取出函数之争并执行.
典型的 消费者模式.
我以前以为是这样...
这是work线程
pthread_mutex_lock(&mutex2)
while(( invoke = get_invoke() ) != NULL){
do_invoke(invo...
分类:
其他好文 时间:
2014-06-04 22:35:56
阅读次数:
408
There is no systematic design for shared resource access priority in platform side, and there is no interface provided by
platform that can be used by application to do bandwidth management optimizat...
分类:
其他好文 时间:
2014-06-03 04:54:35
阅读次数:
262
写一份赏心悦目的工程文档,是很困难的事情。若想写得完善,不仅得用对工具(use the right
tools),注重文笔,还得投入大把时间,真心是一件难度颇高的事情。但,若是真写好了,也是善莫大焉:既可让人明白「为何如此设计」,即「知其然更知其所以然」;也能剥离一些琐碎的细节,让更多没那么多时间与...
分类:
数据库 时间:
2014-06-02 21:24:16
阅读次数:
486
Rope Folding [Brian Dean, 2012]时间限制: 1 Sec
内存限制: 128 MB题目描述Farmer John has a long rope of length L (1 =f(i)的最大i值,递归即可。Work
Scheduling [Richard Peng, ....
分类:
其他好文 时间:
2014-06-02 17:40:21
阅读次数:
1039
了解一下什么是Jbpm及特点。jBPM,全称是Java Business Process
Management,是一种基于J2EE的轻量级工作流管理系统。jBPM是公开源代码项目,它使用要遵循Apache
License。jBPM在2004年10月18日,发布了2.0版本,并在同一天加入了JBoss...
分类:
其他好文 时间:
2014-06-02 09:41:30
阅读次数:
234
在用XCA(X Certificate and key management)可视化程序管理SSL 证书一系列文章的(2)和(3)中,我们学习了如何用XCA(X Certificate and key management)生成证书请,已经如何生成自定义的凭证管理中心(Certificate Authority),如果说前两篇文章是铺垫,那么这篇文章就是最终的目的:用自定义的凭证管理中心(Certificate Authority)签名证书请求。签名的过程非常的简单,具体步骤,请见下面的操作。...
分类:
其他好文 时间:
2014-06-02 04:39:57
阅读次数:
252
??
Description
Given N numbers, X1,
X2, ... , XN, let us calculate the difference of every pair of numbers: ∣Xi
- Xj∣ (1 ≤ i
< j ≤ N). We can get C(N,2) differences through this work, and no...
分类:
其他好文 时间:
2014-06-01 14:07:56
阅读次数:
347
title:
Work out the first ten digits of the sum of the following one-hundred 50-digit numbers.
37107287533902102798797998220837590246510135740250
4637693767749000971264812489697007805041701826053...
分类:
其他好文 时间:
2014-06-01 08:53:33
阅读次数:
276
Configuring Oracle Database for Shared
ServerStepsInitialization Parameters for Shared ServerMemory Management for
Shared ServerEnabling Shared Server...
分类:
其他好文 时间:
2014-05-31 20:54:21
阅读次数:
277
Windows服务大家都不陌生,Windows服务组的概念,貌似MS并没有这个说法。作为一名软件开发者,我们的机器上安装有各种开发工具,伴随着各种相关服务。Visual
Studio可以不打开,SqlServer Management Studio可以不打开,但是SqlServer服务却默认开启了。...