代码搜索:fork

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

代码结果 4,354
www.eeworm.com/read/136989/5836303

phil2 test.phil2

repeat 100; lock fork2 write; lock fork3 write; print "Phil 2 eating"; unlock fork2 write; unlock fork3 write;
www.eeworm.com/read/136989/5836309

phil3 test.phil3

repeat 100; lock fork3 write; lock fork4 write; print "Phil 3 eating"; unlock fork3 write; unlock fork4 write;
www.eeworm.com/read/147331/5732758

c sysfork.c

/* connector for fork */ /* Don't define this if NO_FORK. See for example libc/sys/win32/spawn.c. */ #ifndef NO_FORK #include int _DEFUN_VOID (fork) { #ifdef REENTRANT_SYSCALLS_PROVIDE
www.eeworm.com/read/182833/9188642

c event.c

/* * Copyright (c) 2003-2005 Thomer M. Gil (thomer@csail.mit.edu), * Robert Morris (rtm@csail.mit.edu) * Massachusetts Institute of Technology * * Permissio
www.eeworm.com/read/423094/10588181

c event.c

/* * Copyright (c) 2003-2005 Thomer M. Gil (thomer@csail.mit.edu), * Robert Morris (rtm@csail.mit.edu) * Massachusetts Institute of Technology * * Permissio
www.eeworm.com/read/131315/5930359

2 vfork.2

.\" Copyright (c) 1980, 1991, 1993 .\" The Regents of the University of California. All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, a
www.eeworm.com/read/365209/9875122

c execlp_sample.c

#include #include #include int main(int argc,char *argv[]) { printf("hello world!\n"); pid_t child; child=fork(); //创建子进程 if(child==0) //在子进程里调用之前写的fork_samp
www.eeworm.com/read/242863/12976615

c diner.c

// // This is a philosopher demo, using process scoping. #include #include #define MAX_PHILOSOPHERS 5 using namespace std; using namespace cpp_threads; int main() {
www.eeworm.com/read/106368/15638604

c diner.c

// // This is a philosopher demo, using process scoping. #include #include #define MAX_PHILOSOPHERS 5 using namespace std; using namespace cpp_threads; int main() {
www.eeworm.com/read/103427/15732957

java philosopher.java

class Tool { public boolean[] fork; private final int fork_amount = 5; Tool() { fork = new boolean[fork_amount]; for(int i = 0; i < fork.length; i++) { fork[i] = true; }