signal.c 代码分析笔记
int sys_sgetmask()// 获取当前进程阻塞的信号
{
returncurrent->blocked;
}
int sys_ssetmask(int newmask) //设置当前进程阻塞信号,确保SIGKILL 和SIGSTOP不被阻塞
{
int old=current->...
分类:
系统相关 时间:
2014-05-07 12:25:12
阅读次数:
486
需求分析:
前端需支持更大的访问量,单台Web服务器已无法满足需求了,则需扩容Web服务器;虽然动态内容可交由后端的PHP服务器执行,但静态页面还需要Web服务器自己解析,那是否意味着多台Web服务器都需要在各自的系统中都存有一份静态页面数据呢?
其实这样也不是不可以,毕竟文件本地访问,速度还是有优...
分类:
其他好文 时间:
2014-05-07 10:58:40
阅读次数:
387
方法一(最简单安装):
安装 Net-SNMP
CentOS及其它RedHat系列产品提供了net-snmp的二进制包。我们可以直接从源里安装。
shell> yum install net-snmp net-snmp-devel net-snmp-utils
说明:net-snmp-devel是为了使用net-snmp-config, net-snmp-utils是为了使...
分类:
其他好文 时间:
2014-05-07 02:48:36
阅读次数:
428
stddef.h #define offsetof(TYPE, MEMBER)
((size_t) &((TYPE *)0)->MEMBER) kernel.h /** * container_of - cast a
member of a structure out to the containi...
分类:
其他好文 时间:
2014-05-07 02:10:07
阅读次数:
410
NOP的定时任务也是群里听群友听说,我很少在WEB端做定时任务,所以尝鲜下,看看效果怎么样.主要涉及到下面几个类和配置文件配置:web.config
...
分类:
其他好文 时间:
2014-05-07 01:30:18
阅读次数:
371
C:\Users\xxx\Documents\IISExpress\config\applicationhost.config
将这里面带的项目路径替换成你当前路径{"创建 cachingConfiguration 的配置节处理程序时出错:
未能加载文件或程序集“Microsoft.Practice...
分类:
其他好文 时间:
2014-05-07 00:53:20
阅读次数:
414
tm结构体的定义在time.h里面
struct tm {
int tm_sec;
int tm_min;
int tm_hour;
int tm_mday;
int tm_mon;
int tm_year;
int tm_wday;
int tm_yday;
int tm_isdst;
};
/*...
分类:
系统相关 时间:
2014-05-06 22:26:46
阅读次数:
474
DataInputStream和DataOutputStream
往二进制文件中读和写入java基本数据类型
public class BinaryReadWrite {
private DataInputStream dis = null;
private DataOutputStream dos = null;
private String s_FilePath = "config\...
分类:
编程语言 时间:
2014-05-06 21:12:07
阅读次数:
567
XenServer定义了一个名为存储库(SR)的容器来描述存储虚拟磁盘映像(VDI)的特定存储目标。VDI是包含虚拟磁盘内容的磁盘抽象。在许多SR类型中均支持VDI。XenServerSR具有对本地连接的IDE、SATA、SCSI和SAS驱动器和远程连接的iSCSI、NFS、SAS和光纤通道的内置支持,因而非常灵活。S..
分类:
其他好文 时间:
2014-05-06 17:24:01
阅读次数:
535