91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 177KB
    文件類型: .zip
    金幣: 1
    下載: 0 次
    發布日期: 2021-01-09
  • 語言: 其他
  • 標簽:

資源簡介

山東大學軟件學院2019年操作系統實驗,涵蓋實驗指導書上實驗一到實驗七的獨立實驗的源碼

資源截圖

代碼片段和文件信息

#include?“pctl.h“
int?main(int?argc?char?*argv[])
{
????int?i;
????int?pid[]?=?{0?0};//存放子進程號
????int?status;?//存放子進程返回狀態
????char?*args0[]?=?{“/bin/ls“?NULL};?//子進程1要缺省執行的命令
????char?*args1[]?=?{“/bin/ps“?NULL};?//子進程2要缺省執行的命令
????signal(SIGINT(sighandler_t)sigcat);?//注冊一個本進程處理鍵盤中斷的函數
????pid[0]?=?fork();?//建立子進程1
????if(pid[0]?????{
????????printf(“Create?Process?fail!\n“);
????????exit(EXIT_FAILURE);
????}
????else?if(pid[0]?==?0)?//?子進程1執行代碼段
????{
????????//報告父子進程進程號
????????printf(“I?am?Child?process?1?%d\nMy?father?is?%d\n“getpid()getppid());
????????pause();?//暫停等待喚醒

????????//子進程1被繼續執行
????????printf(“%d?child?1?will?run:?\n“getpid());????????
????????for(i=0;?args0[i]?!=?NULL;?i++)?
????????????printf(“%s?“args0[i]);
????????printf(“\n“);
????????//裝入并

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-06-04?22:19??Exp1\
?????文件?????????168??2019-05-07?19:25??Exp1\Makefile
?????文件???????16096??2019-06-01?13:17??Exp1\pctl
?????文件????????2427??2019-06-01?13:17??Exp1\pctl.c
?????文件?????????270??2019-05-05?21:14??Exp1\pctl.h
?????文件????????9608??2019-06-01?13:17??Exp1\pctl.o
?????目錄???????????0??2019-06-04?22:19??Exp2\
?????文件?????????163??2019-05-12?20:26??Exp2\makefile
?????文件???????16824??2019-05-12?21:25??Exp2\tpipe
?????文件????????2555??2019-05-12?21:26??Exp2\tpipe.c
?????文件???????11752??2019-05-12?21:25??Exp2\tpipe.o
?????目錄???????????0??2019-06-04?22:19??Exp3\
?????文件?????????156??2019-05-17?19:49??Exp3\Makefile
?????文件???????16528??2019-05-17?20:28??Exp3\psched
?????文件????????1687??2019-05-17?20:28??Exp3\psched.c
?????文件????????9960??2019-05-17?20:28??Exp3\psched.o
?????目錄???????????0??2019-06-04?22:19??Exp4\
?????文件???????21848??2019-06-01?19:22??Exp4\consumer
?????文件????????2276??2019-06-01?19:42??Exp4\consumer.c
?????文件???????13208??2019-06-01?19:22??Exp4\consumer.o
?????文件????????6744??2019-05-20?21:34??Exp4\ipc.c
?????文件????????1490??2019-05-20?20:05??Exp4\ipc.h
?????文件???????17872??2019-06-01?19:22??Exp4\ipc.o
?????文件?????????371??2019-05-19?15:23??Exp4\Makefile
?????文件???????21832??2019-06-01?19:22??Exp4\producer
?????文件????????2327??2019-06-01?19:42??Exp4\producer.c
?????文件???????13192??2019-06-01?19:22??Exp4\producer.o
?????目錄???????????0??2019-06-04?22:19??Exp5\
?????文件???????22304??2019-05-29?22:38??Exp5\barber
?????文件????????1339??2019-05-29?22:43??Exp5\barber.c
?????文件???????12064??2019-05-29?22:38??Exp5\barber.o
............此處省略19個文件信息

評論

共有 條評論