代码搜索:fork

找到约 4,354 项符合「fork」的源代码

代码结果 4,354
www.eeworm.com/read/253411/12225045

12 fig8.12

#include "apue.h" static void charatatime(char *); int main(void) { pid_t pid; if ((pid = fork()) < 0) { err_sys("fork error"); } else if (pid == 0) { charatatime("output from child\n"); }
www.eeworm.com/read/253408/12225495

c zombie.c

#include "apue.h" #ifdef SOLARIS #define PSCMD "ps -a -o pid,ppid,s,tty,comm" #else #define PSCMD "ps -o pid,ppid,state,tty,command" #endif int main(void) { pid_t pid; if ((pid = fork()) < 0) e
www.eeworm.com/read/253408/12225501

c tellwait2.c

#include "apue.h" static void charatatime(char *); int main(void) { pid_t pid; TELL_WAIT(); if ((pid = fork()) < 0) { err_sys("fork error"); } else if (pid == 0) { WAIT_PARENT(); /* paren
www.eeworm.com/read/253408/12225507

c tellwait1.c

#include "apue.h" static void charatatime(char *); int main(void) { pid_t pid; if ((pid = fork()) < 0) { err_sys("fork error"); } else if (pid == 0) { charatatime("output from child\n"); }
www.eeworm.com/read/252193/12294880

c 9-3.c

#include #include main() { int pid; pid = fork(); switch(pid) { case -1: perror("fork failed"); exit(1); case 0: execl("/bin/ls","ls","-l"
www.eeworm.com/read/233704/14142825

v mytest.v

module mytest; integer a,b; initial begin a=3; b=2; forever fork #5 a
www.eeworm.com/read/233704/14142832

bak mytest.v.bak

module mytest; integer a,b; initial fork a=3; b=2; forever fork #5 a
www.eeworm.com/read/130781/14174385

c forkdemo2.c

/* forkdemo2.c - shows how child processes pick up at the return * from fork() and can execute any code they like, * even fork(). Predict number of lines of output. */
www.eeworm.com/read/130781/14174389

c psh2.c

/** prompting shell version 2 ** ** Solves the `one-shot' problem of version 1 ** Uses execvp(), but fork()s first so that the ** shell waits around to perform another command ** New probl
www.eeworm.com/read/130455/14193363

cpp forkjoin.cpp

// forkjoin.cpp - written and placed in the public domain by Wei Dai #include "pch.h" #include "forkjoin.h" #include "queue.h" #include NAMESPACE_BEGIN(CryptoPP) Fork::Fork(unsign