学习C语言的进程概念时,会遇到fork()函数。而遇到时要是有例子,会像下边的样子。执行后双输出。起初见到时,甚为难以理解。我把见到的例子略作修改,以便于我理解这个函数涉及的进程概念。vimchild_process.cgccchild_process.c./a.out这里的显示表示运行在父进程中。[root@h..
分类:
其他好文 时间:
2015-05-11 18:16:08
阅读次数:
141
生成证书:# cd /usr/local/nginx/conf # openssl genrsa -des3 -out server.key 1024 # openssl req -new -key server.key -out server.csr # cp server.key server....
分类:
其他好文 时间:
2015-05-11 17:36:42
阅读次数:
110
In [1]: a = [0, 1, 4, 3]
In [2]: b = [3, 5, 4, 2]
In [3]: c = dict(zip(a, b))
In [4]: c
Out[4]: {0: 3, 1: 5, 3: 2, 4: 4}
In [5]:
上代码。。。。...
分类:
编程语言 时间:
2015-05-11 14:51:03
阅读次数:
109
1.写文件ofstream outfile("file_name",open_mode);打开模式可以缺省,此时默认每次都是擦除文件中的原始数据,然后再写入此次的内容;追加内容采用:ios_base::appofstream outfile("out_file.txt",ios_base::app)...
分类:
编程语言 时间:
2015-05-11 14:22:39
阅读次数:
191
String msgStr="my name is {0} and my age is {1};"; String result = MessageFormat.format(msgStr,"tom",20); System.out.println(result); //输出: my nam...
分类:
其他好文 时间:
2015-05-11 12:57:27
阅读次数:
109
#include #include #include usingnamespaceboost;usingnamespacestd;voidrunChild(constintn){ cout g++ threadgroup.cc -lboost_thread> ./a.out 3如果在freebsd4...
分类:
编程语言 时间:
2015-05-11 12:32:56
阅读次数:
101
支持所有PS版本。WMI服务能够报告详细的硬件信息。通常,每个硬件都来自它们自己的WMI代理类。但是要找出这些硬件类的名字是不容易。所有硬件类都在同一个WMI根下面,你可以在根类查询所有的硬件:1Get-WmiObject -Class CIM_LogicalDevice |Out-GridView...
分类:
系统相关 时间:
2015-05-11 10:40:49
阅读次数:
168
1、C#编程基础加强/Windows编程基础(6天)核心技术课程编程基础强化练习、面向过程编程(变量、if、for、while、函数、类型转换、枚举、数组、重载、值类型、引用类型、ref、out、字符串)、面向对象编程(类、继承、接口、异常、索引器、多态)、Attribute、常用数据结构(List...
分类:
Web程序 时间:
2015-05-11 10:36:14
阅读次数:
141
存储过程的写法:mysql>create procedure test(->in username varchar(50),->in password varchar(50),->out userid int)->begin->set @sql=concat("insert into user(`u...
分类:
数据库 时间:
2015-05-11 01:23:16
阅读次数:
181
hibernate抓取策略fetch具体解释一、hibernate抓取策略(单端代理的批量抓取fetch=select(默认)/join)測试用例:Student student = (Student)session.get(Student.class, 1);System.out.println(...
分类:
Web程序 时间:
2015-05-10 23:43:03
阅读次数:
168