标签:fork函数

在Linux系统下使用fork() 函数,提示符会在子进程之前运行的原因

#include <stdio.h> #include <unistd.h> int main() { pid_t fpid; int count = 0; fpid = fork(); if (fpid > 0) { printf("I am the parent process, my process id i……