码迷,mamicode.com
首页 >  
搜索关键字:sync mirror    ( 6902个结果
ZooKeeper 的安装 以及配置说明
Zookeeper的安装和配置十分简单, 既可以配置成单机模式, 也可以配置成集群模式. 下面将分别进行介绍. 单机模式 下载zookeeper的安装包之后(http://mirror.bit.edu.cn/apache/zookeeper/), 解压到合适目录. 进入...
分类:其他好文   时间:2015-04-13 09:49:34    阅读次数:112
tcp_sync_server and tcp_sync_client
#include #include #include #include using namespace std;using boost::asio::ip::tcp;const char* serviceList = "\n\t Services\n" "\t*******************....
分类:其他好文   时间:2015-04-12 22:29:02    阅读次数:183
linux 监控系统缓存和cpu
a=`free |head -n 2 |tail -n 1 |awk '{print $7}'`if [ $a -ge 900000 ];then sync && echo 1 >/proc/sys/vm/drop_cacheselse echo "`date +%x%T`cache: > /ho....
分类:系统相关   时间:2015-04-12 06:30:34    阅读次数:200
重构代码
function sync_dept_delete($dept_info, $sir_domain, $dept_id = 0){ // 查出域名对应的id if($dept_id == 0 || $dept_id == ""){ $dept_id = Check_Addr...
分类:其他好文   时间:2015-04-10 20:13:49    阅读次数:85
[LeetCode]Symmetric Tree
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree is symmetric: 1 / \ 2 2 / \ / \ 3 4 4 3...
分类:其他好文   时间:2015-04-09 21:57:21    阅读次数:131
java同步机制对象锁使用方式比较
class Sync { private byte[] lock = new byte[0]; public void sync() throws InterruptedException { synchronized (lock) { runThread(); } } public void thi...
分类:编程语言   时间:2015-04-09 15:35:31    阅读次数:235
Linux文件系统挂载管理
mount多个参数用逗号隔开: 例子mount挂载和查询已经挂载的分区: 例子带参数的命令: 默认的是读写的,可以创建文件: 改成RO后: 加入sync参数,不使用缓存,缺点是读写速度慢,优点是安全性高。 加入async参数,使用缓存,缺点是不安全,优点是读写速度快。默认async 例子如下: 最后一个可以看出来sync。 例子umount:(类似U盘弹出...
分类:系统相关   时间:2015-04-09 11:58:41    阅读次数:145
golang sync.RWMutex
golang sync.RWMutex
分类:其他好文   时间:2015-04-09 10:29:08    阅读次数:152
golang sync.Once
golang sync.Once
分类:其他好文   时间:2015-04-08 14:58:57    阅读次数:135
golang sync.Mutex(2)
golang sync.Mutex(2)
分类:其他好文   时间:2015-04-08 14:39:27    阅读次数:107
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!