代码下载地址:http://www.apuebook.com/下的第二版,里面有个readme文件:root@iZ23onhpqvwZ:~/ms/linux/apue/apue.2e# cat README Read the file called DISCLAIMER.Some source ch...
分类:
其他好文 时间:
2014-12-08 15:28:16
阅读次数:
279
read_timeout函数封装//读超时函数,但不包含读操作
int read_timeout(int fd, long waitSec)
{
int returnValue = 0;
if (waitSec > 0)
{
fd_set readSet;
FD_ZERO(&readSet); //清零
FD_SET...
In the lastduring, I am studying the basic about struts2.
At be ginning,I always am confused by the namespace of struts2 xml configuration file.
Cause, sometimes I shall read some examples...
分类:
其他好文 时间:
2014-12-07 23:13:36
阅读次数:
169
前两篇文章写了Shuffle Read的一些实现细节。但是要想彻底理清楚这里边的实现逻辑,还是需要更多篇幅的;本篇开始,将按照Job的执行顺序,来讲解Shuffle。即,结果数据(ShuffleMapTask的结果和ResultTask的结果)是如何产生的;结果是如何处理的;结果是如何读取的。...
分类:
其他好文 时间:
2014-12-07 21:48:53
阅读次数:
224
【概述】 该类管理远程连接,每一个远程连接会对应一个该类的实例,开发时可以通过继承该类,扩展属性,可以存储更多的连接信息,可以重写OnRecvBuffer方法进行数据逻辑的处理 【字段/属性说明】 property RemoteAddr: String read FRemoteAddr; 说明:远程...
分类:
其他好文 时间:
2014-12-07 20:17:11
阅读次数:
162
#!/bin/bashurl=$1dir=$2download(){ cd $dir >> /dev/null 2>&1 if [ $? -ne 0 ];then read -p "$dir No such file or directory,create?(y/n)" answer ...
分类:
系统相关 时间:
2014-12-07 20:15:57
阅读次数:
263
xcode编译报错如下:could not read data from '/Users/iamme/Documents/XCode/myapp/myapp/myapp-Info.plist': The file “myapp-Info.plist” couldn’t be opened becau...
分类:
移动开发 时间:
2014-12-07 19:03:18
阅读次数:
759
Problem Description
Ali has taken the Computer Organization and Architecture course this term. He learned that there may be dependence between instructions, like WAR (write after read), WAW, RAW.
If...
分类:
编程语言 时间:
2014-12-07 17:52:29
阅读次数:
262
介绍: EHCache 是一个快速的、轻量级的、易于使用的、进程内的缓存。它支持 read-only 和 read/write 缓存,内存和磁盘缓存。是一个非常轻量级的缓存实现,而且从 1.2 之后就支持了集群。 配置: ??? EHCach...
分类:
系统相关 时间:
2014-12-07 13:54:49
阅读次数:
399
'b' --> binary 二进制'r' --> read 读取'w' --> write 写'a' --> append 追加于是: 'rb'就是 以二进制的形式读取文件注:'w' 和 'a'的区别:'w'模式下, 如果文件不存在, 会创建这个文件; 如果文件存在, 则将其覆盖'a'模式下, 打...
分类:
编程语言 时间:
2014-12-07 01:19:51
阅读次数:
167