摘要: 编译一个晚上学到的:linux下加载和调用动态链接库的一个方法。#include#includeint main(int argc, char *argv[]){void *libc;void (*printf_call)();if(libc = dlopen("libc.so.6", RTLD_LAZY)) // RTLD_LAZY表示函数的惰性邦定{printf_call = dlsym(li... 阅读全文
posted @ 2012-06-04 21:38 ohscar 阅读(134) 评论(0) 推荐(0) 编辑
摘要: A cache behaves in a "semantically transparent" manner, with respect to a particular response, when its use affects neither the requesting client nor the origin server, except to improve performance. ... 阅读全文
posted @ 2012-05-28 09:04 ohscar 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 简单的描述:Cache ping-pong is a more subtle form of thrashing that can happen when more than one CPU is using data that is cached on the same line. For example, say there are two CPUs using an array of str... 阅读全文
posted @ 2012-05-24 14:08 ohscar 阅读(398) 评论(0) 推荐(0) 编辑
摘要: Weak reference objects, which do not prevent their referents from being made finalizable, finalized, and then reclaimed. Weak references are most often used to implement canonicalizing mappings. 阅读全文
posted @ 2012-05-24 13:59 ohscar 阅读(178) 评论(0) 推荐(0) 编辑
摘要: Incomputing,vectored I/O, also known asscatter/gather I/O, is a method of input and output by which a single procedure-call sequentially writes data from multiple buffers to a singledata streamor... 阅读全文
posted @ 2012-05-19 15:53 ohscar 阅读(238) 评论(0) 推荐(0) 编辑
摘要: α.Α.alpha β.Β.beta γ.Γ.gamma δ.Δ.deltaε.Ε.epsilon ζ.Ζ.zeta η.Η.eta θ.Θ.thetaι.Ι.iota κ.Κ.kappaλ.Λ.lambda μ.Μ.muν.Ν.nu ... 阅读全文
posted @ 2012-05-16 11:57 ohscar 阅读(90) 评论(0) 推荐(0) 编辑
摘要: http://www.cl.cam.ac.uk/techreports/ 阅读全文
posted @ 2012-05-16 10:22 ohscar 阅读(88) 评论(0) 推荐(0) 编辑
摘要: http://www.hpl.hp.com/techreports/Compaq-DEC/ 阅读全文
posted @ 2012-05-15 15:03 ohscar 阅读(98) 评论(0) 推荐(0) 编辑
摘要: E. W. Dijkstra: "Solution of a problem in concurrent programming control", CACM, vol.5, No. 9, p 569. 1966. The first paper on mutual exclusion. The algorithm in this paper is not starvation free. D... 阅读全文
posted @ 2012-05-14 21:51 ohscar 阅读(193) 评论(0) 推荐(0) 编辑
摘要: redis用一个event loop作为事件分发器(dispatcher),他的作用就是“挡在前面”,对应外界的IO。涉及文件:ae.h, ae.c, ae_epoll.c, ae_select.c, ae_kqueue.c版本: 2.4.4ae.c中定义了event loop的主体,剩余三个文件(ae_epoll.c, ae_select.c, ae_kqueue.c)分别是三种底层api的封装... 阅读全文
posted @ 2012-05-13 20:44 ohscar 阅读(1011) 评论(0) 推荐(0) 编辑