代码搜索:fork
找到约 4,354 项符合「fork」的源代码
代码结果 4,354
www.eeworm.com/read/442187/7657641
c execlp.c
#include
#include
#include
int main()
{
if(fork()==0){
if(execlp("ps","ps","-ef",NULL)
www.eeworm.com/read/442187/7657645
c execl.c
#include
#include
#include
int main()
{
if(fork()==0){
if(execl("/bin/ps","ps","-ef",NULL)
www.eeworm.com/read/442187/7657653
c kill.c
#include
#include
#include
#include
#include
int main()
{
pid_t pid;
int ret;
if((pid=fork())
www.eeworm.com/read/399161/7885447
c whotofile.c
/* whotofile.c
* purpose: show how to redirect output for another program
* idea: fork, then in the child, redirect output, then exec
*/
#include
main()
{
int pid ;
int fd;
printf
www.eeworm.com/read/398610/7933737
cc parent.cc
#include
using namespace std;
#include
int main()
{
int ret = fork();
if(ret
www.eeworm.com/read/398610/7933785
cc child.cc
#include
using namespace std;
#include
int main()
{
int ret = fork();
if(ret
www.eeworm.com/read/333344/12686296
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/244088/12889248
java deadlock.java
import java.util.Timer;
import java.util.TimerTask;
//声明Fork类
class Fork {
private static int counter = 0;
private int number = counter++;
public String toString() {
return "" + num
www.eeworm.com/read/329751/12935690
c whotofile.c
/* whotofile.c
* purpose: show how to redirect output for another program
* idea: fork, then in the child, redirect output, then exec
*/
#include
main()
{
int pid ;
int fd;
printf
www.eeworm.com/read/142603/12935922
c 2.c
#include
main()
{
int p1,p2,i;
while ((p1=fork())==-1);
if (p1==0)
for (i=0;i