/****************************************
CopyRite WangHonglei
E-mail yourlei@163.net
*****************************************/
#include
by smartham_whl - C/C++ - 2003-07-11 16:24:00 阅读(2510) 回复(13)
int glob_tmp = 6; /* external variable in initialized data */ char buf[] = "a write to stdout\n"; int main(void) { int var; /* automatic variable on the stack */ pid_t pid; var = 88; if (write(STDOUT_FILENO, buf, sizeof(buf)-1) != sizeof(buf)-1) err_sys("write error"); printf("before fork\n"); /* we don't flush stdout */ if ( (pid = fork()) printf("pid = %d, glob = %d, var = %d\n", g...
int main(void) { int i=0; for(i=0;i<2;i++) { if(fork()==0) { a(); } } } a() { printf("abcd"); } 为什么打印结果是这样啊 abcd abcd abcd abcd 应该只有子进程打印啊
项目名:clone a site 项目描述:We want a clone of a existing site named www.ibuyhouses.com with all its functionalities. Preferred CMS is Joomla Might need the following components for the site. 1) SOBI2 2) Acajoom Autoresponder 3) Forms/Database (LQM) 工作类型:Joomla SQL Website Design 客户补充的问题:I forgot to mention that i want the australia map, it shouldn't be hard, it sho...