CentOS下如何安装libevent1.下载安装包新版本是libevent-2.0.10-stable。(如果你的系统已经安装了libevent,可以不用安装)官网:http://www.monkey.org/~provos/libevent/下载:http://www.monkey.org/~p...
分类:
其他好文 时间:
2014-06-18 15:46:17
阅读次数:
273
一、Ashmem驱动程序
~/Android/kernel/goldfish
----include
----linux
----ashmem.h
----mm
----ashmem.c
驱动程序详解请看《Android系统源代码情景分...
分类:
移动开发 时间:
2014-06-18 11:27:37
阅读次数:
306
1.boost锁的概述: boost库中提供了mutex类与lock类,通过组合可以轻易的构建读写锁与互斥锁。2.mutex对象类(主要有两种): 1.boost::mutex(独占互斥类) -->有lock和unlock方法 2.boost::shared_mutex(共享互斥类) -->有...
分类:
编程语言 时间:
2014-06-18 11:16:03
阅读次数:
262
在Android的日常开发中,相信大家都用过SharedPreferences来保存用户的某些settings值。Shared Preferences
以键值对的形式存储私有的原生类型数据,这里的私有的是指只对你自己的app可见的,也就是说别的app是无法访问到的。
客户端代码为了使用它有2种方式,一种是通过Context#getSharedPreferences(String prefNam...
分类:
移动开发 时间:
2014-06-17 18:56:59
阅读次数:
350
一、Ashmem驱动程序
~/Android/kernel/goldfish
----include
----linux
----ashmem.h
----mm
----ashmem.c
驱动程序详解请看《A...
分类:
移动开发 时间:
2014-06-17 16:41:12
阅读次数:
801
主要参考文档:http://www.itpub.net/thread-1714191-1-1.html
Oracleh有两种服务器模式shared mode和dedicated mode。
Dedicated mode下,客户端每发来一个连接请求,数据库都要给这个请求建立一个服务进程来完成响应。而在shared mode下,oracle会首先建立一定数目的服务进程,客户端发来的请求会首先发送到...
分类:
数据库 时间:
2014-06-17 16:10:51
阅读次数:
316
●boost锁的概述boost库中提供了mutex类与lock类,通过组合可以轻易的构建读写锁与互斥锁。▲mutex对象类mutex类主要有两种:boost::mutex,boost::shared_mutex,其中mutex有lock和unlock方法,shared_mutex除了提供lock和u...
分类:
其他好文 时间:
2014-06-15 23:47:04
阅读次数:
312
freefree 命令相对于top 提供了更简洁的查看系统内存使用情况:# free total used free shared buffers cachedMem: 255988 231704 ...
分类:
其他好文 时间:
2014-06-15 11:56:28
阅读次数:
207
编译参数:
./configure --prefix=/usr/local/php5 --with-apxs2=/usr/local/apache2/bin/apxs --enable-shared --with-libxml-dir --with-gd --with-openssl --enable-mbstring --wit...
分类:
Web程序 时间:
2014-06-14 09:13:09
阅读次数:
245
翻译注:共享内存是程序之间进行数据交互的最基本的方式,而由于windows和kithara rts本身为两个独立的系统,为了能够使两个不同系统之上的程序进行通信,那么就必须开辟一块内存区域用于数据共享。本文是对kithara rts官方原文进行的翻译,加入了本人的一些使用经验。Shared Memo...
分类:
其他好文 时间:
2014-06-14 09:01:50
阅读次数:
360