05 2012 档案

摘要: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 oh_taochunhua 阅读(210) 评论(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 oh_taochunhua 阅读(468) 评论(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 oh_taochunhua 阅读(186) 评论(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 oh_taochunhua 阅读(261) 评论(0) 推荐(0)
摘要:α.Α.alpha β.Β.beta γ.Γ.gamma δ.Δ.deltaε.Ε.epsilon ζ.Ζ.zeta η.Η.eta θ.Θ.thetaι.Ι.iota κ.Κ.kappaλ.Λ.lambda μ.Μ.muν.Ν.nu ... 阅读全文
posted @ 2012-05-16 11:57 oh_taochunhua 阅读(96) 评论(0) 推荐(0)
摘要:http://www.cl.cam.ac.uk/techreports/ 阅读全文
posted @ 2012-05-16 10:22 oh_taochunhua 阅读(98) 评论(0) 推荐(0)
摘要:http://www.hpl.hp.com/techreports/Compaq-DEC/ 阅读全文
posted @ 2012-05-15 15:03 oh_taochunhua 阅读(107) 评论(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 oh_taochunhua 阅读(204) 评论(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 oh_taochunhua 阅读(1037) 评论(0) 推荐(0)
摘要:苹果公司的标志有时被误认为源于图灵自杀时咬下的半个苹果 阅读全文
posted @ 2012-05-10 11:48 oh_taochunhua 阅读(108) 评论(0) 推荐(0)
摘要:Copas is a dispatcher based on coroutines that can be used by TCP/IP servers. It uses LuaSocket as the interface with the TCP/IP stack.A server registered with Copas should provide a handler for reque... 阅读全文
posted @ 2012-05-05 13:53 oh_taochunhua 阅读(235) 评论(0) 推荐(0)
摘要:OS领域的经典Paper! Monitor的概念充分体现了现代程序设计的思想,在当时的年代背景下,写出如此优雅的代码,可以不朽~~ 1. 本文讲述了一种用于实现操作系统的基础结构:Monitor 该结构将需要共享的资源(data)和访问资源的代码(interface)组合起来,对外提供访问函数,数据不可见,通过访问函数来保护数据。每个访问函数都具在一个临界区中。这种手法被后人广泛使用~~ 2. 为了实现Monitor,给出了一种配套使用的机制:Condition 对就是多线程设计中常见的Condition,这个东东就是从这里来的。唯一与现在的Condition不通的地方在于:本文要求wait被 阅读全文
posted @ 2012-05-05 04:52 oh_taochunhua 阅读(186) 评论(0) 推荐(0)
摘要:原文下载:Synchronization Primitives for a Multiprocessor : A Formal Specification 本文给出了一组用于线程同步的原语,它们在DEV SRC线程包中被实现(Modula-2+语言):MutexConditionSemaphore首先是非形式化的描述,讲述每个原语的含义和用法; 然后是形式化描述,通过一种Latch Language来定义每个原语的语义; 最后简单介绍了每个原语在语言包中是如何实现的。 文章想告诉我们:同步原语是非常复杂和精妙的,如果不用形式化方法是难以说清楚的(虽然我觉得本文第一部分已经把原语的含义讲得很好了 阅读全文
posted @ 2012-05-01 21:45 oh_taochunhua 阅读(183) 评论(0) 推荐(0)