同步,不具备开启线程的能力:dispatch_sync异步,具备开启线程的能力:dispatch_async并列队列:多个任务可以同时执行串行队列:一个任务执行完后,再执行下一个任务一个金典的列子:#define ZHGlobalQueue dispatch_get_global_queue(DIS...
分类:
移动开发 时间:
2015-04-16 12:08:10
阅读次数:
125
执行yum操作,报错:YumRepo Error: All mirror URLs are not using ftp, http[s] or file.Eg. $releasever is not a valid release or hasnt been released yet/removin...
分类:
其他好文 时间:
2015-04-16 11:46:30
阅读次数:
272
题目链接: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 ...
分类:
其他好文 时间:
2015-04-16 09:06:02
阅读次数:
147
以下方法适合于所有版本的Zend Studio的汉化 在线汉化: 选择Help菜单->Install New Software...在Work with框中复制此地址:http://mirror.bit.edu.cn/eclipse/technology/babel/update-site/...
分类:
其他好文 时间:
2015-04-15 11:04:23
阅读次数:
138
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
CentOS 6.5系统镜像有32位和64位两个版本,生产服务器如果是大内存(4G以上内存)建议安装64位版本CentOS-6.5-x86_64-bin-DVD1.iso附:CentOS 6.5下载地址32位:http://mirror.centos.org/centos/6.5/isos/i386...
分类:
其他好文 时间:
2015-04-14 19:37:30
阅读次数:
220
1.在虚拟机上安装centos6.6系统:http://mirror.symnds.com/distributions/CentOS-vault/6.5/isos/i386/CentOS-6.5-i386-bin-DVD1.iso2.更新所有软件:yum update3.为yum添加epel源:打开...
转载地址: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
I saw a lot of BFS based solutions. And my alternative solution is this mirror-ed BST iterator one, with some book-keeping:class Solution {public: ...
分类:
其他好文 时间:
2015-04-13 12:22:37
阅读次数:
136