资源描述:
《实验五、六:构造进程家族树、理解进程的独立空间》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、计算机操作系统实验报告评语:课中检查完成的题号及题数:课后完成的题号与题数:成绩:指导教师:实验报告实验名称:五构造进程家族树六理解进程的独立空间日期:2011.5.16一、实验目的1.构造进程家族树通过创建若干个子进程,构造进程家族树,分析进程家族树的结构关系;学习相关系统调用(例如,getpid()和getppid()等)的使用方法。2.理解进程的独立空间理解进程是操作系统独立分配资源的单位,进程拥有自己相对独立的程序空间。二、实验内容1.构造进程家族树学习进程构造的相关知识,学习获取进程相关信
2、息的系统调用函数。2.理解进程的独立空间预习进程创建和构造的相关知识,了解C语言程序编写的相关知识。三、项目要求及分析1.构造进程家族树进程的创建。编制一段程序,使用系统调用fork()创建三个子进程,在各个子进程中再使用系统调用fork()进一步创建子进程,如此重复,构造一棵具有图1andduediligenceevaluationsarticle22ndheadoffice,branch(jurisdiction),riskmanagement,marketingmanagementbranch
3、withintheDepartment'screditbusinesspersonassumedresponsibilityforthesupervisionandinspectionandduediligenceevaluations.Article23rd,HeadOffice,branches(jurisdiction),riskmanagement,MarketingManagementDepartmentthroughon-siteandoff-siteinspection,investi
4、gationreport,interviewswithinvestigatorsforpre-loaninvestigationworkbywayofconductingsupervisionandinspection,qualityevaluationpre-loaninvestigationwork,andbasedontheevaluationresults,theimplementationofdiversitymanagement.24ththecontrolandinspection(a
5、)theimplementationofthecreditsystem:thereisnobreachofcreditpolicyrelatingtothegrantingofcreditandtheheadoffice;(B)dualcreditrating:timelinessofratings,whethertheprovisionsoftherating,ratingresultsareaccurate;(C)thesurveycontents:datacollectioniscomplet
6、e,reportwritingiscomprehensive,indicatorsanalysisisobjective,real,conclusionsandthefactsareconsistentandreasonable;(D)doubleimplementationofinvestigationssystem:practicalimplementationofdoublesystem;(E)othersupervisionandinspectionofthecontents.25thdue
7、diligenceevaluationofficesandbranches(jurisdiction),riskmanagement,MarketingManagementDepartmentagreedtocarryoutpre-loaninvestigationsupervisionandinspectionwork,evaluatewhetherinvestigatorsduediligencetodeterminewhethertheexemptionshouldbe.Investigato
8、rsshouldbecompatiblewith.Duediligenceassessmentshouldbebasedonthefactthat,followingtheprinciplesofobjectivity,impartialityandfairness.Article26thhead9计算机操作系统实验报告形状的进程家族树。分别使用系统调用getpid()和getppid()获取当前进程和父进程的进程标识号并输出。ParentPid2Pid1Pid3Pi