Runtime EnvironmentsQuartz can run embedded within another free standing applicationQuartz can be instantiated within an application server (or servle...
分类:
其他好文 时间:
2014-06-25 19:13:37
阅读次数:
225
MemCached Client集群方案By mingjun HouCluster的实现 Memcached作为集中式Cache,就存在着集中式的致命问题:单点问题,Memcached支持多Instance分布在多台机器上,仅仅 只是解决了数据全部丢失的问题,但是当其中一 台机 器...
分类:
其他好文 时间:
2014-06-25 16:28:29
阅读次数:
175
malloc与free是C++/C语言的标准库函数,new/delete是C++的运算符。它们都可用于申请动态内存和释放内存。 对于非内部数据类型的对象而言,光用maloc/free无法满足动态对象的要求。对象在创建的同时要自动执行构造函数,对象在消亡之前要自动执行析构函数。由于malloc/fr....
分类:
其他好文 时间:
2014-06-25 15:23:39
阅读次数:
210
memcache和redis区别2014年4月27日mood暂无评论memcache官方定义Free & open source, high-performance, distributed memory object caching system, generic in nature, but i...
分类:
其他好文 时间:
2014-06-25 14:59:31
阅读次数:
190
题目:Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations:getandset.get(key)- Get the v...
分类:
其他好文 时间:
2014-06-25 14:12:42
阅读次数:
214
1.蓝牙耳机接听电话 这个就对应HFP(Hands-freeProfile),Free your Hand,蓝牙的初衷之一。先来看这个功能的场景,手机来电,手机与蓝牙耳机已连接,这时会优先触发蓝牙接听电话的代码流程,起步代码在phone\src\com\android\phone\nCall...
分类:
移动开发 时间:
2014-06-25 13:37:18
阅读次数:
287
题目
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set.
get(key) - Get the value (will always be positive) of the key...
分类:
其他好文 时间:
2014-06-24 22:45:43
阅读次数:
202
这里给出一个服务端和客户端,服务端可以接收多个连接,并且利用Go的杀手特性go和channel来替代select进行数据的接受。
服务端:
package main
import (
"fmt"
. "syscall"
)
func RecvRoutine(sockfd int, session chan string) {
var buffer []byte = make(...
分类:
系统相关 时间:
2014-06-24 17:53:37
阅读次数:
399
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set.
get(key) - Get the value (will always be positive) of the key if ...
分类:
其他好文 时间:
2014-06-24 17:25:41
阅读次数:
197
线上集群后端某台Web服务器,我们观察到+buffers/cache值(即Linux内存的实际使用情况)一直都是5365左右,就算停掉Nginx+FastCGI程序也是一样,考虑到这台机器经常在使用rsync+inotify,肯定会存在着频繁存取文件。而Linux系统有一个特性:在Linux下频繁存取文件时,就会占用..
分类:
其他好文 时间:
2014-06-24 16:19:37
阅读次数:
303