代码搜索:fork
找到约 4,354 项符合「fork」的源代码
代码结果 4,354
www.eeworm.com/read/321265/13409798
c execl.c
#include
#include
#include
int main()
{
if(fork()==0){
if(execl("/bin/ps","ps","-ef",NULL)
www.eeworm.com/read/321265/13409806
c kill.c
#include
#include
#include
#include
#include
int main()
{
pid_t pid;
int ret;
if((pid=fork())
www.eeworm.com/read/315939/13534062
c kill.c
#include
#include
#include
#include
#include
int main()
{
pid_t pid;
int ret;
if((pid=fork())
www.eeworm.com/read/315169/13549580
c zombie.c
#include
#include
#include
int main()
{
pid_t pid;
if((pid = fork()) < 0){
perror("fork");
/*子进程1*/
}else if(pid == 0){
if((pid = fork()) < 0
www.eeworm.com/read/308682/13696252
c waitpid.c
/*waitpid.c*/
#include
#include
#include
#include
#include
int main()
{
pid_t pc,pr;
pc=fork();
if(pc
www.eeworm.com/read/308682/13696253
c execlp.c
#include
#include
#include
int main()
{
if(fork()==0){
if(execlp("ps","ps","-ef",NULL)
www.eeworm.com/read/308682/13696257
c execl.c
#include
#include
#include
int main()
{
if(fork()==0){
if(execl("/bin/ps","ps","-ef",NULL)
www.eeworm.com/read/308682/13696265
c kill.c
#include
#include
#include
#include
#include
int main()
{
pid_t pid;
int ret;
if((pid=fork())
www.eeworm.com/read/151700/5679784
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/144216/5752413
t io_pipe.t
#!./perl
BEGIN {
unless(grep /blib/, @INC) {
chdir 't' if -d 't';
@INC = '../lib';
}
}
use Config;
BEGIN {
if(-d "lib" && -f "TEST") {
my $reason;
if (! $Config{'d_fork'}) {
$r