代码搜索:fork
找到约 4,354 项符合「fork」的源代码
代码结果 4,354
www.eeworm.com/read/316861/7085774
2_child_progress_communication
/*fork two child progress,两个子进程间利用pipe通信*/
#include
#include
#include
int main()
{
pid_t child1;
pid_t child2;
int fd[2];
char buf[500];
int len;
if ((p
www.eeworm.com/read/387591/7085852
c p7.6.c
#include
#include
#include
int main(void){
fork();
printf("Will be executed twice\n");
return 0;
}
www.eeworm.com/read/464500/7157017
c waitpid.c
/*waitpid.c*/
#include
#include
#include
#include
#include
int main()
{
pid_t pc,pr;
pc=fork();
if(pc
www.eeworm.com/read/464500/7157018
c execlp.c
#include
#include
#include
int main()
{
if(fork()==0){
if(execlp("ps","ps","-ef",NULL)
www.eeworm.com/read/464500/7157022
c execl.c
#include
#include
#include
int main()
{
if(fork()==0){
if(execl("/bin/ps","ps","-ef",NULL)
www.eeworm.com/read/464500/7157034
c kill.c
#include
#include
#include
#include
#include
int main()
{
pid_t pid;
int ret;
if((pid=fork())
www.eeworm.com/read/463186/7186577
c kill.c
#include
#include
#include
#include
#include
int main()
{
pid_t pid;
int ret;
if((pid=fork())
www.eeworm.com/read/459754/7264898
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)
perro
www.eeworm.com/read/444591/7611197
m formback11.m
%%% 单位:电流单位为A,电压单位为kV,功率单位为kW,阻抗单位为欧姆
function [U,iterations,error,costime]=formback
t1=clock;
bus16;%% 导出networkdata文件中的data矩阵,和网络的输入端的额定电压为Un,网络的参数都存储在data中
%%global A;
global Ibr;
A=data; %%
www.eeworm.com/read/442187/7657640
c waitpid.c
/*waitpid.c*/
#include
#include
#include
#include
#include
int main()
{
pid_t pc,pr;
pc=fork();
if(pc