代码搜索:fork
找到约 4,354 项符合「fork」的源代码
代码结果 4,354
www.eeworm.com/read/136812/5861213
h teksw.h
/* @(#)teksw.h 1.1 92/07/30 SMI */
/*
* Copyright (c) 1985 by Sun Microsystems, Inc.
*/
/*
* A tek subwindow is a subwindow type that is used to provide a
* Tektronix 4014 terminal emulation for
www.eeworm.com/read/131315/5932094
c forks.c
/*
* Benchmark program to calculate fork+wait
* overhead (approximately). Process
* forks and exits while parent waits.
* The time to run this program is used
* in calculating exec overhead.
*/
www.eeworm.com/read/124347/6053340
c alarm03.c
/*
* Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General
www.eeworm.com/read/124347/6053489
c kill09.c
/*
* Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General P
www.eeworm.com/read/101082/6244758
2 vfork.2
.\" SCCSID: @(#)vfork.2 8.1 9/11/90
.TH vfork 2
.SH Name
vfork \- spawn new process in a virtual memory-efficient way
.SH Syntax
.B pid = vfork()
.br
.B int pid;
.SH Description
.NXR "vfork system cal
www.eeworm.com/read/101082/6246619
2 vfork.2
.\" SCCSID: @(#)vfork.2 8.1 9/11/90
.TH vfork 2
.SH Name
vfork \- spawn new process in a virtual memory-efficient way
.SH Syntax
.B pid = vfork()
.br
.B int pid;
.SH Description
.NXR "vfork system cal
www.eeworm.com/read/485291/6557458
c process_create.c
#include
int main()
{
int p1,p2;
while((p1=fork())==-1);
if(p1==0)
putchar('b');
else
{
while((p2=fork())==-1);
if(p2==0)
putchar('c');
else
putchar('a');
www.eeworm.com/read/485291/6557462
c process_manage.c
#include
int main()
{
int p1,p2,i;
while((p1=fork())==-1);
if(p1==0)
{
lockf(1,1,0);
for(i=0; i
www.eeworm.com/read/482748/6622048
c waitpid.c
/*waitpid.c*/
#include
#include
#include
#include
#include
int main()
{
pid_t pc,pr;
pc=fork();
if(pc
www.eeworm.com/read/482748/6622049
c execlp.c
#include
#include
#include
int main()
{
if(fork()==0){
if(execlp("ps","ps","-ef",NULL)