代码搜索:fork
找到约 4,354 项符合「fork」的源代码
代码结果 4,354
www.eeworm.com/read/174735/9575056
c waitpid.c
/*waitpid.c*/
#include
#include
#include
#include
#include
int main()
{
pid_t pc,pr;
pc=fork();
if(pc
www.eeworm.com/read/174735/9575057
c execlp.c
#include
#include
#include
int main()
{
if(fork()==0){
if(execlp("ps","ps","-ef",NULL)
www.eeworm.com/read/174735/9575061
c execl.c
#include
#include
#include
int main()
{
if(fork()==0){
if(execl("/bin/ps","ps","-ef",NULL)
www.eeworm.com/read/166020/10040999
c execl.c
/*execl.c*/
#include
#include
#include
int main()
{
if(fork()==0){
/*调用execl函数,注意这里要给出ps程序所在的完整路径*/
if(execl("/bin/ps","ps","-ef",NULL)
www.eeworm.com/read/157145/10246207
ʵ
#include
main()
{
char *envp[]={"PATH=/tmp",
"USER=lei",
"STATUS=testing",
NULL};
char *argv_execv[]={"echo", "excuted by execv", NULL};
char *argv_execvp[]={"echo", "ex
www.eeworm.com/read/425088/10381934
java fixedphilosopher.java
package concurrency.diners;
import java.awt.*;
class FixedPhilosopher extends Thread {
int identity;
boolean stopRequested = false;
PhilCanvas view;
Diners controller;
Fork left
www.eeworm.com/read/279234/10452458
pl fig18_01.pl
#!/usr/bin/perl
# Fig. 18.1: fig18_01.pl
# Using fork to create child processes.
use warnings;
use strict;
my ( $start, $middle, $end, $pid );
$| = 1;
$start = time();
if ( $pid = fork
www.eeworm.com/read/279224/10454305
js datatrans.js
// some methods about the data ,eg. json , xml
/*
* @author: shennan , amushen@yahoo.com.cn
*/
function numToType(num){
//节点类型的转换,将数字转成对应的字符串
num=parseInt(num);
switch(num){
case 1:
www.eeworm.com/read/424383/10455898
c p7.6.c
#include
#include
#include
int main(void){
fork();
printf("Will be executed twice\n");
return 0;
}
www.eeworm.com/read/416026/11044063
c kill.c
#include
#include
#include
#include
#include
int main()
{
pid_t pid;
int ret;
if((pid=fork())