github windows failed to sync this branch...
Semi-Space(SS)GC和Generational Semi-Space(GSS)GC是ART运行时引进的两个Compacting GC。它们的共同特点是都具有一个From Space和一个To Space。在GC执行期间,在From Space分配的还存活的对象会被依次拷贝到To Space中,这样就可以达到消除内存碎片的目的。本文就将SS GC和GSS GC的执行过程分析进行详细分析。...
分类:
其他好文 时间:
2015-04-20 01:52:15
阅读次数:
256
一、Redis主从同步原理1.1 Redis主从同步的过程配置好slave服务器连接的master后,slave会建立和master的连接,然后发送sync命令。无论是第一次同步建立的连接还是连接断开后的重新连接,master都会启动一个后台进程,将数据库快照保存到文件中.同时master主进程会开...
分类:
其他好文 时间:
2015-04-18 19:08:53
阅读次数:
121
import "sync"import "sync/atomic"import "time"import "runtime"1.runtime.Gosched()表示让CPU把时间片让给别人,下次某个时候继续恢复执行该goroutine,自己一般是阻塞了,这是一个很高级的sleep,我们经常会遇到要...
分类:
其他好文 时间:
2015-04-18 11:25:50
阅读次数:
266
192.168.1.210node1
192.168.1.220node2
192.168.1.200nfs
1.200:
yuminstall-ynfs-utils
vim/etc/exports
/data/share192.168.1.0/24(rw,sync,no_root_squash)
/etc/init.d/rpcbindrestart;/etc/init.d/nfsrestart
210,220:
yuminstall-ynfs-utils
showmount-e192.168.1.200
m..
分类:
数据库 时间:
2015-04-17 15:54:57
阅读次数:
194
同步,不具备开启线程的能力:dispatch_sync异步,具备开启线程的能力:dispatch_async并列队列:多个任务可以同时执行串行队列:一个任务执行完后,再执行下一个任务一个金典的列子:#define ZHGlobalQueue dispatch_get_global_queue(DIS...
分类:
移动开发 时间:
2015-04-16 12:08:10
阅读次数:
125
PHP 没有提供直接的并发功能。要实现并发,必须: function asyn_send(){ $fp = fsockopen(‘localhost‘, 80, &$errno, &$errstr, 5); if(!$fp){ echo "$errstr ($errno) /n"; } fputs($fp, "GET /sync.php?param=1...
分类:
其他好文 时间:
2015-04-14 20:26:09
阅读次数:
128
转载地址:http://www.cnblogs.com/FrankTan/archive/2010/12/11/1903377.html gcc从4.1.2提供了__sync_*系列的built-in函数,用于提供加减和逻辑运算的原子操作。 其声明如下: type?__sync_fetch_and_add?(ty...
分类:
编程语言 时间:
2015-04-13 19:09:47
阅读次数:
179
今天就讲一讲NFS的配置,NFS共享服务提供Linux与Unix之间的共享服务1.软件包nfs-utils portmap2.主配置文件 /etc/exports3.安装rpm-qnfs-utilsportmap或者用yum-yinstallnfs[root@ser1~]#cat/etc/exports/root192.168.10.20(rw,sync,no_root_squash)/usr/src192.168.10.0/24(rw..
分类:
其他好文 时间:
2015-04-13 13:02:31
阅读次数:
139
#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