进程suspend是什么意思

suspend是什么意思  时间:2021-01-23  阅读:()
.
操作系统原理与设计第2章OSstructures陈香兰中国科学技术大学计算机学院March7,2014提纲操作系统的组成、服务、特征SystemcomponentsOSServicesSystemCalls&Typessystemprograms操作系统的特征操作系统的抽象模型和体系结构进程模型线程模型OSstructureVirtualMachine系统设计与实现小结和作业Outline操作系统的组成、服务、特征SystemcomponentsOSServicesSystemCalls&Typessystemprograms操作系统的特征操作系统的抽象模型和体系结构进程模型线程模型OSstructureVirtualMachine系统设计与实现小结和作业SystemcomponentsSystemcomponentsProcessManagement,进程管理MainMemoryManagement,内存管理Secondary-StorageManagement,辅存/外存管理I/OSystemManagement,I/O管理FileManagement,文件管理ProtectionSystem,保护Networking,网络Command-InterpreterSystem,命令解释系统process(orprocessor)management.
.
多道环境下,处理器的运行及分配都以进程(process)为单位,因此处理器管理可归结为进程管理(processmanagement).
1processcontrolcreate/destroyaprocess;suspend(挂起)/resume(恢复)aprocessprocessstate(进程状态)transfering一般由processcontrolprimitives(进程控制原语)完成2processsynchronization(同步)为使多个进程有条不紊地运行,应建立synchronizationmechanism(同步机制).
includingprocessmutualexclution/synchronization(进程互斥/同步),次序协调;dead-lockavoidance,prevention,detectionandresolution(死锁避免、预防、检测和消除)3Processcommunication源于进程合作,如:输入进程、计算进程、打印进程相互间有信息传递类型:directly:PA发msg,PB收msgindirectly:PA发msg到中间实体(如mailbox),PB从中间实体收msg4JobschedulingandprocessschedulingJobscheduling:为作业分配必要资源,调入内存建立进程,并使之进入就绪队列.
Processscheduling:从就绪队列中选出进程,分配CPU,使之运行.
Schedulealgorithms:FCFS、优先权等MainMemoryManagement(存储管理)MainMemory,MM:alargearrayofwordsorbytes,eachwithitsownaddressArepositoryofquicklyaccessibledatasharedbyCPUandI/OdevicesAvolatilestoragedeviceMaybethemostarchitecture-speciedcomponentofOSActivitiesKeepingtrackofmemoryusageDecidingwhichprocessestoloadAllocatinganddeallocatingmemoryspaceMainMemoryManagement(存储管理).
.
目的:方便用户使用,且提高存贮器利用率1Memoryallocation静态分配:动态分配:作业在内存中可移动需内存分配的数据结构及内存分配和回收功能2Memoryprotection例:设置上、下界寄存器,每条指令进行越界检查(一般是硬件实现)3Memorymapping,内存映射地址范围地址逻辑空间逻辑地址(相对地址)物理空间物理地址(绝对地址)4Memoryexpansion,内存扩充利用虚存技术,从逻辑上扩充内存容量系统应有:请求调入/置换功能以支持虚存技术Filemanagement(文件管理)Aleacollectionofrelatedinformationdenedbyitscreator.
Commonly,programs&dataAlogicalstorageunitActivitiesFilecreationanddeletionDirectory(目录)creationanddeletionSupportofprimitivesformanipulatinglesanddirectoriesMappinglesontosecondarystorageFilebackup(备份)onstable(nonvolatile)storagemedia文件管理的功能任务:方便用户,提供安全性1文件存贮空间的管理例:文件系统根据文件长度自动分配连续或离散的扇区,并提供"一句柄"表示该文件.
2Directorymanagement(目录管理)使用户按名存取,提高速度.
3文件的读、写管理和存取控制(即保护)I/OsystemmanagementI/Osubsystem(I/O子系统)TohidethepeculiaritiesofspecichardwaredevicesfromtheuserMaybethemostcomplicatecomponentandhaslargestlineofcode(LOC)VariousdeviceConsistsofBuering,caching,andspoolingAgeneraldevice-driverinterfaceDriversforspecichardwaredeviceI/Osystemmanagement任务:提高I/O利用率和速度,方便用户1缓冲管理Buer(缓冲区):用来解决CPU-I/O矛盾,如:CPU快则应多创建缓冲区.
2deviceallocation(设备分配)包括:设备,设备控制器,I/O通信的分配和回收3设备处理指控制设备进行实际的操作,包括读、写等以及向CPU发中断.
设备处理/驱动程序应能根据用户的I/O请求,自动地构成通道程序.
4DeviceIndependence(设备独立性)andvirtualdevice(虚拟设备)Deviceindependence:即program与设备无关性,使program易于重定向,增加了可移植性.
VirtualdeviceSecondarystoragemanagement(辅存管理)Usuallydisksusedtostoredatathatdoesnottinmainmemoryordatathatmustbekeptfora"long"periodoftime.
PropermanagementisofcentralimportanceEntirespeedofcomputeroperationhingesondisksubsystemanditsalgorithmsActivitiesFree-spacemanagementStorageallocationDiskschedulingSomestorageneednotbefastTertiarystorageincludesopticalstorage,magnetictapeStillmustbemanagedVariesbetweenWORM(write-once,read-many-times)andRW(read-write)UserInterface1命令接口由一组"命令"集组成,分为联机和脱机用户接口联机用户接口由一组键盘操作命令及命令解释程序所组成脱机(批处理用户接口)用JCL写作业说明书2程序接口系统调用高级语言的库函数,如C库3图形接口如win的copy文件,采用"拖"来完成,生动,不需记忆Command-interpretersystem(命令解释系统)Command-interpreter(命令解释程序):TheinterfacebetweentheuserandtheOSallowsuserstodirectlyentercommandsInthekernelorasaspecialprogramFunction:Togetthenextcommandstatementandexecuteit.
Examples:Control-cardinterpreter(控制卡解释程序):batchsystemCommand-lineinterpreter(命令行解释程序):DOSShell:UNIXGUI(图形用户界面):Macintosh,whindows,.
.
.
implementationofcommandapartofthecommandinterpreter,orasystemprogram,suchasUNIX.
ProtectionandSecuritysystemProtection–anymechanismforcontrollingaccessofprocessesoruserstoresourcesdenedbytheOSSecurity–defenseofthesystemagainstinternalandexternalattacksHugerange,includingdenial-of-service,worms,viruses,identitytheft,theftofserviceSystemsgenerallyrstdistinguishamongusers,todeterminewhocandowhatUseridentities(userIDs,securityIDs)associatedwithallles,processesofthatusertodetermineaccesscontrolGroupidentier(groupID)PrivilegeescalationallowsusertochangetoeectiveIDwithmorerightsOutline操作系统的组成、服务、特征SystemcomponentsOSServicesSystemCalls&Typessystemprograms操作系统的特征操作系统的抽象模型和体系结构进程模型线程模型OSstructureVirtualMachine系统设计与实现小结和作业OSServices.
.
操作系统的各种功能,最终要封装成"服务"的形式提供给用户装载并运行程序提供各种I/O操作提供文件系统及文件操作提供通信服务提供差错检测服务对资源的分配进行管理对资源的使用进行统计(记账)对系统进行保护操作系统提供服务的最基本方式——systemcalls(系统调用)系统调用的类型进程控制类文件操作类设备管理类通信类,例如消息传送机制信息维护类,例如日期信息、系统信息等Outline操作系统的组成、服务、特征SystemcomponentsOSServicesSystemCalls&Typessystemprograms操作系统的特征操作系统的抽象模型和体系结构进程模型线程模型OSstructureVirtualMachine系统设计与实现小结和作业SystemCallsProgramminginterfacetotheservicesprovidedbytheOSTypicallywritteninahigh-levellanguage(CorC++)Mostlyaccessedbyprogramsviaahigh-levelApplicationProgramInterface(API)ratherthandirectsystemcalluseThreemostcommonAPIsareWin32APIforWindows,POSIXAPIforPOSIX-basedsystems(includingvirtuallyallversionsofUNIX,Linux,andMacOSX),andJavaAPIfortheJavavirtualmachine(JVM)WhyuseAPIsratherthansystemcallsExampleofSystemCallsSystemcallsequencetocopythecontentsofoneletoanotherleExampleofStandardAPI.
.
ConsidertheReadFile()functionWin32API—afunctionforreadingfromaleAdescriptionoftheparameterspassedtoReadFile()HANDLEle—theletobereadLPVOIDbuer—abuerwherethedatawillbereadintoandwrittenfromDWORDbytesToRead—thenumberofbytestobereadintothebuerLPDWORDbytesRead—thenumberofbytesreadduringthelastreadLPOVERLAPPEDovl—indicatesifoverlappedI/OisbeingusedSystemCallImplementationTypically,anumberassociatedwitheachsystemcallSystem-callinterfacemaintainsatableindexedaccordingtothesenumbersThesystemcallinterfaceinvokesintendedsystemcallinOSkernelandreturnsstatusofthesystemcallandanyreturnvaluesThecallerneedknowNOTHINGabouthowthesystemcallisimplementedJustneedstoobeyAPIandunderstandwhatOSwilldoasaresultcallMostdetailsofOSinterfacehiddenfromprogrammerbyAPIManagedbyrun-timesupportlibrary(setoffunctionsbuiltintolibrariesincludedwithcompiler)API–SystemCall–OSRelationshipStandardCLibraryExampleCprograminvokingprintf()librarycall,whichcallswrite()systemcallSystemCallParameterPassing(参数传递)Often,moreinformationisrequiredthansimplyidentityofdesiredsystemcallExacttypeandamountofinformationvaryaccordingtoOSandcallThreegeneralmethodsusedtopassparameterstotheOS1.
Simplest:passtheparametersinregistersInsomecases,maybemoreparametersthanregisters2.
Parametersstoredinablock,ortable,inmemory,andaddressofblockpassedasaparameterinaregisterLinuxandSolaris3.
Parametersplaced,orpushed,ontothestackbytheprogramandpoppedothestackbytheoperatingsystemBlockandstackmethodsdonotlimitthenumberorlengthofparametersbeingpassedParameterPassingviaTableTypesofSystemCalls1ProcessControlCommandinterfaceviathecommandinterpreter,or,GUIviaawindowsystemLoadandexecuteaprogramControlarunningprogram:haltitsexecutioneithernormally(end)orabnormally(abort)Programming:createprocess,terminateprocessget/setprocessattributeswaitfortime,waitevent,signaleventallocate/freememorydebugging:trace,ptrace,etc.
example:processcontrolofMS-DOSMS-DOS:asingle-taskingsystemstartwithitscommandinterpreterforacommand:doesnotcreateanewprocessloadandexecuteresumeexample:processcontrolofFreeBSDFreeBSD:amultitaskingsystemashellisrunwhenauserlogsonforacommandfork(),exec()waitfortheprocesstonish,orrunstheprocess"inthebackground"TypesofSystemCalls2leManagementcreate/deleteleopen/close,read/write/repositionget/setleattributes3DeviceManagementrequest/releasedeviceread/write/repositionget/setdeviceattributeslogicallyattach/detachdevices4infomationmaintenanceget/settime/date/systemdata/process,le,deviceattributesTypesofSystemCalls5communicationscreate/deletecommunicationconnectionsend/receivemessagestransferstatusinformationattach/detachremotedevidesMessage-passingmodelMessage-passingmodelandShared-memorymodelOutline操作系统的组成、服务、特征SystemcomponentsOSServicesSystemCalls&Typessystemprograms操作系统的特征操作系统的抽象模型和体系结构进程模型线程模型OSstructureVirtualMachine系统设计与实现小结和作业systemprogramsAcollectionofsystemprogramsprovideaconvenietenvironmentforprogramdevelopmentandexecute.
lemanagement/modication,statusinformation,programming-languagesupport,programloadingandexecution,communicationsOutline操作系统的组成、服务、特征SystemcomponentsOSServicesSystemCalls&Typessystemprograms操作系统的特征操作系统的抽象模型和体系结构进程模型线程模型OSstructureVirtualMachine系统设计与实现小结和作业操作系统的特征1并发并行vs.
并发并行是指两或多个事件在同一时刻发生.
并发是两或多个事件在同一时间间隔内发生.
Programvs.
Process(进程)Program:静态实体;Process:动态实体Aprograminexecution.
是系统中能独立运行并作为资源分配的基本单位.
引入线程后,独立运行的单位变为线程.
操作系统的特征2共享系统中资源可供内存中多个并发执行的进程共同使用互斥共享VS.
同时访问互斥共享:一段时间只允许一个进程访问该资源同时访问:微观上仍是互斥的临界资源:在一段时间内只允许一个进程访问的资源并发和共享是操作系统的两个最基本的特征.
操作系统的特征3虚拟虚拟:通过某种技术把一个物理实体变为若干个逻辑上的对应物.
若n是某一物理设备所对应的虚拟的逻辑设备数,则虚拟设备的速度必然是物理设备速度的1/n.
4异步运行进度不可预知.
传统操作系统的抽象模型传统的进程模型线程模型服务体/执行流模型Outline操作系统的组成、服务、特征SystemcomponentsOSServicesSystemCalls&Typessystemprograms操作系统的特征操作系统的抽象模型和体系结构进程模型线程模型OSstructureVirtualMachine系统设计与实现小结和作业进程模型进程这一术语,最初是在20世纪60年代初期,在麻省理工学院(MIT)的MULTICS系统和IBM公司的CTSS/360系统中引入的现代操作系统都以进程(Process)为单位来分配包括处理机、内存、I/O等在内的各种资源,以实现对计算机系统的并发控制机制.
围绕进程而展开的工作主要包括进程管理、进程控制、进程同步、进程间通信以及进程调度等进程的地址空间地址空间中的代码、数据和堆栈等内容决定了一个进程所能执行的任务进程描述符及其上下文包括程序指针、堆栈指针以及其他硬件寄存器决定了一个进程的当前执行情况.
进程调度调度是操作系统实现处理机并发控制的关键.
调度中最能体现进程模型本质的核心功能是进程切换调度算法仅仅被用来决定在什么时机、切换到哪个进程上.
最常见的调度算法包括时间片轮转调度、基于优先级的可抢占或不可抢占调度一些实时调度算法等等进程间通信机制用于进程之间交换信息也是进程之间进行通信的唯一途径.
就模型而言,进程之间实现通信必须有进程调度机制的介入.
常见的进程间通信机制包括信号、信号量、管道、消息队列、套接字.
Outline操作系统的组成、服务、特征SystemcomponentsOSServicesSystemCalls&Typessystemprograms操作系统的特征操作系统的抽象模型和体系结构进程模型线程模型OSstructureVirtualMachine系统设计与实现小结和作业线程模型线程模型从进程模型发展而来.
将进程的执行上下文从进程描述符中分离出来,就得到了线程的概念.
线程是指令在进程地址空间中的执行轨迹在线程模型中,进程可以是单线程的,也可以是多线程的.
传统进程模型中的进程可以看成是单线程的.
任何一个线程都属于某个进程.
根据是否跨越进程边界,进程/线程在管理、控制、同步、通信和调度上有了两个层次,即进程内部和进程之间.
通常,现代操作系统在大多数情况下仍然是不区分这两种情况的例外:进程内部的线程之间可以通过进程地址空间直接共享某些数据,而不必采用传统的进程间通信机制.
Outline操作系统的组成、服务、特征SystemcomponentsOSServicesSystemCalls&Typessystemprograms操作系统的特征操作系统的抽象模型和体系结构进程模型线程模型OSstructureVirtualMachine系统设计与实现小结和作业OSstructure软件体系结构(SoftwareArchitecture)对软件系统的构造具有指导性的作用.
Bass在2003年关于软件体系结构的定义:"软件体系结构是一种系统结构,该结构包括软件元素、元素的外部可视属性、元素之间的关系".
因此,OS体系结构包含如下几个方面:OS的功能模块是如何组成的,即采用什么样的软件元素OS的功能模块的哪些信息/属性是相互可见的OS的功能模块之间是如何互操作的OSstructuresOSasasystemsoftware,islargeandcomplexSoftwareengineering:tofunctionproperlyandbemodiedeasilypartitionintosmallcomponents(vs.
onemonolithicsystem)carefullydenetheinputs,outputsandfunctionofeachmoduleHowtheOScomponentsareinterconnectedandmeldedintoakernelSimplestructure(无结构,或者说简单结构)Monolithickernel(单一大内核)Modularkernel(模块化结构)layeredapproach(层次结构)Microkernel(therstandthesecondgeneration)Hybridstructure(混合内核)Exokernel(外核)simplestructure(简单结构)Initially,Notawell-denedstructureStartedassmall,simple,andlimitedsystemslimitedbyhardwareperfromanceandsoftwaretechniqueatthattimenoclearsystemstructure(没有清晰的体系结构)操作系统功能模块和用户应用程序混杂在一起,在同一个地址空间上运行,模块之间可以相互任意调用Example:MS-DOS,theoriginalUNIXandsomeearlyorsmallembeddedsystemExample:MS-DOSExample:MS-DOS,writtentoprovidethemostfunctionalityintheleastspaceNotdividedintomodulesTheinterfaces&levelsoffunctionalityaren'twellseparatedAPPcanaccessthebasicI/OroutinesLimitedbyhardwareIntel8088,nodualmode&hardwareprotectionMonolithicstructure(单一内核结构)随着硬件平台在性能上、数量上、种类上以及对操作系统的支持上的发展,操作系统的结构有了新的发展systemcall(系统调用):使得操作系统与用户应用程序隔离开来;kernel:everythingbelowthesystemcallandabovethephysicalHW.
随着操作系统的功能越来越多、模块之间的调用关系也越来越复杂形成了单一的、体积庞大的操作系统内核calledMonolithicstructure/Monolithickernel(单一大内核).
用户应用只能通过中断、异常、系统调用的方式使用操作系统提供的服务用户应用程序之间通过各种IPC进行通信disadvantage:diculttoimplementandmaintain.
ExampleModularkernel(模块化结构)随着软件开发技术的发展,单一大内核结构的操作系统逐渐采用了模块化设计方法模块之间定义了很好的以函数调用的形式提供的接口在一定程度上提高了操作系统的可维护性.
SometechniquesObject-orientedprogrammingdynamicallinkdynamicalloadingExampleimplementationsofUNIX,suchasSolaris,Linux,andMacOSX.
SolarisModularstructuretheSolarisOSstructure=acorekernel+7typesofloadablekernelmodules.
layeredapproach(层次结构).
.
为减少OS各模块之间紧密依赖和相互调用的关系,特别是消除循环调用现象,实现有序调用Inthelayeredapproach,thesystemisbrokenupintoanumberoflayers/levelsBottomlayer(layer0):HW;Highest(layerN):theuserinterface.
eachlayercanonlyusetheoperationsprovidedbylower-levellayers,andprovidescertainoperatonstohigher-levellayerseachlayerhidestheexistenceofcertaindatastructures,operationsandhardwarefromhigher-levellayers.
layeredapproach(层次结构)Advantageissimplicityofcontructionanddebugging.
debuggedfromtherstlayeruptothehigher-levellayers.
Disadvantage:Diculty:appropriatelydediningthevariouslayers.
tendtobelessecienthavecausedasmallbacklashagainstlayering.
layeredapproach根据每一层内部各模块之间是否存在调用关系,层次结构进一步被划分为全序的操作系统,如1968年Dijkstra等开发的THE系统半序的操作系统,如多伦多大学的SUE操作系统.
Microkernels(微内核).
.
Inthemid-1980s,RichardRashiddevelopedanOScalledMachthatmodularizedthekernelusingthemicrokernelapproachatCMU.
allnonessentialcomponentsareremovedfromthekernelandimplementedassystemanduser-levelprogramsrunninginuser-space.
asmallerkernel,thefunctionincluding:provideminimalprocessandmemorymanagementmainly,provideacommunicationfacilitybetweenclientandserverprogram:messagepassing(消息传递)Benet:easeofextendingtheOS.
(可扩展性)easytoportfromonehardwaredesigntoanother.
(可移植性)moresecurityandreliability.
(安全性和可靠性)Example:Mach,Tru64UNIXviaMachkernel,QNX.
WindowsNT→WindowsXPDisadvantage:performancedecreaseduetoincreasedsystemfunctionoverhead.
therstgenerationofmicrokernels(第一代微内核)thesecondgenerationofmicrokernels(第二代微内核)OneapproachtosolvetheperformanceproblemofmicrokernelIPC↑calledthesecondgenerationofmicrokerneltypicalexample:L4hybridstructure(混合内核)anotherapproachtosolvetheperformanceproblemofmicorkernel:hybridstructure即扩大微内核并把一些关键的服务程序和驱动程序重新加入到内核中去,如WindowsNT4.
0把图形系统重新加入内核以提高性能.
但这种方法削弱了微内核思想在系统的扩充性、灵活性和可靠性等方面所带来的优点ExampleTherstreleaseofWindowsNThasalayeredmicrokernelorganization.
Lowperformance0:somelayersmovedfromuserspacetokernelspaceandintegratingthemmoreclosely.
WindowsXP:moremonolithicthanmicrokernel.
theMacOSXstructurelayeredtechniquewithonelayerconsistsoftheMachmicrokernelMachprovidesmemorymanagement,supportforremoteprecedurecalls(RPCs,远程过程调用)andIPCfacilitiesincludemessagepassing,andthreadscheduling.
BSDkernelprovidesaBSDcommandlineinterface,supportfornetworkingandlesystems,andaninplementationofPOSIXAPIs,includePthreads.
Additionally,anI/Okitfordevelopmentofdevicedriversanddynamicallyloadablemodules,whichreferredaskernelextensions参考:Exokernel(外核)Exokernel提出了外核的概念,它试图将操作系统接口降低到硬件层在外核结构中,内核只用来负责简单的申请、释放并复用硬件资源,而将内存映射、I/O和复杂的线程包等所有在传统操作系统内核中提供的抽象都转移到用户空间,以库的形式提供,用户程序通过调用库的形式实现对硬件资源的直接访问.
外核结构可以看成是微内核结构的一种极端形式操作系统体系结构小结从上述OS体系结构的发展过程中可以看出:除了简单结构以外,操作系统中都存在一个内核核外的程序通过中断、异常、系统调用的方式访问内核中提供的服务;内核内部模块之间采用函数调用的形式直接调用(不论接口定义是否良好);操作系统提供给核外的程序的抽象是进程/线程包括用户应用和外放到核外运行的操作系统功能模块进程/线程之间通过进程间通信机制进行通信;Outline操作系统的组成、服务、特征SystemcomponentsOSServicesSystemCalls&Typessystemprograms操作系统的特征操作系统的抽象模型和体系结构进程模型线程模型OSstructureVirtualMachine系统设计与实现小结和作业VirtualMachine(虚拟机).
.
Avirtualmachinetakesthelayeredapproachtoitslogicalconclusion.
IttreatshardwareandtheOSkernelasthoughtheywereallhardwareAvirtualmachineprovidesaninterfaceidenticaltotheunderlyingbarehardwareTheOScreatestheillusionofmultipleprocesses,eachexecutingonitsownprocessorwithitsown(virtual)memoryTheresourcesofthephysicalcomputeraresharedtocreatethevirtualmachinesCPUschedulingcancreatetheappearancethatusershavetheirownprocessorSpoolingandalesystemcanprovidevirtualcardreadersandvirtuallineprintersAnormalusertime-sharingterminalservesasthevirtualmachineoperator'sconsolesystemmodelAdvantage:pretectionviaisolationOSdevelopedonlineovervirtualmachineExample:VMWareVirtualMachineExample:JavaVirtualMachinesOutline操作系统的组成、服务、特征SystemcomponentsOSServicesSystemCalls&Typessystemprograms操作系统的特征操作系统的抽象模型和体系结构进程模型线程模型OSstructureVirtualMachine系统设计与实现小结和作业OSdesignandimplementationTherstproblemindesigningaOSistodenegoals(目标)andspecications(规格).
requirement(需求)Oneimportantprinciple:theseparationofpolicyfrommechanism(机制和策略相分离)mechanisms(机制)determinehowtodosomething(如何来做);policies(策略)determinewhatwillbedone(做什么).
Example:timer(定时器)、priority(优先级);microkernelVS.
AppleMacintoshimplementationTraditionally:assemblylanguage(汇编语言)→Now:higher-levellanguagessuchasC/C++advantage:writetheOSfaster,morecmpact(紧凑),easierounderstandanddebug,easiertoport(移植),.
.
.
possibledisadvantages:speed↓andstoragerequirements↑.
Nolongeramajorissue.
小结操作系统的组成、服务、特征SystemcomponentsOSServicesSystemCalls&Typessystemprograms操作系统的特征操作系统的抽象模型和体系结构进程模型线程模型OSstructureVirtualMachine系统设计与实现小结和作业作业操作系统最基本的两个特征是什么什么是操作系统的体系结构,有哪些操作系统的组成有哪些Describethreegeneralmethodsforpassingparameterstotheoperatingsystem.
WhatarethetwomodelsofinterprocesscommunicationWhatarethestrengthsandweaknessofthetwoapproachesWhyistheseparationofmechanismandpolicydesirable为什么机制与策略分离是一个令人满意的原则上机作业.
.
在linux中,编写一个程序父进程创建一个pipe后创建一个子进程父进程输出当前的时间和日期父进程输出自己的进程号和子进程的进程号父进程将自己的进程号通过pipe告诉子进程子进程输出自己的进程号和父进程的进程号最后,让子进程执行另外一个程序.
提示:getpid,pipe,write,read,close,fork,execve使用strace跟踪父子进程的运行情况,了解程序是如何在系统中运行起来的.
对可执行程序进行反汇编,了解用户程序是如何请求操作系统的系统调用的.
提供上机报告,说明:编写程序的过程中参考的材料或者网页编写程序的过程中出现的错误,解决问题的方法附上源代码和运行结果的截图谢谢!

热网互联33元/月,香港/日本/洛杉矶/韩国CN2高速线路云主机

热网互联怎么样?热网互联(hotiis)是随客云计算(Suike.Cloud)成立于2009年,增值电信业务经营许可证:B1-20203716)旗下平台。热网互联云主机是CN2高速回国线路,香港/日本/洛杉矶/韩国CN2高速线路云主机,最低33元/月;热网互联国内BGP高防服务器,香港服务器,日本服务器全线活动中,大量七五折来袭!点击进入:热网互联官方网站地址热网互联香港/日本/洛杉矶/韩国cn2...

艾云年付125元圣何塞GTT,洛杉矶vps年付85元

艾云怎么样?艾云是一家去年年底成立的国人主机商家,商家主要销售基于KVM虚拟架构的VPS服务,机房目前有美国洛杉矶、圣何塞和英国伦敦,目前商家推出了一些年付特价套餐,性价比非常高,洛杉矶套餐低至85元每年,给500M带宽,可解奈飞,另外圣何塞也有特价机器;1核/1G/20G SSD/3T/2.5Gbps,有需要的朋友以入手。点击进入:艾云官方网站艾云vps促销套餐:KVM虚拟架构,自带20G的防御...

恒创科技SonderCloud,美国VPS综合性能测评报告,美国洛杉矶机房,CN2+BGP优质线路,2核4G内存10Mbps带宽,适用于稳定建站业务需求

最近主机参考拿到了一台恒创科技的美国VPS云服务器测试机器,那具体恒创科技美国云服务器性能到底怎么样呢?主机参考进行了一番VPS测评,大家可以参考一下,总体来说还是非常不错的,是值得购买的。非常适用于稳定建站业务需求。恒创科技服务器怎么样?恒创科技服务器好不好?henghost怎么样?henghost值不值得购买?SonderCloud服务器好不好?恒创科技henghost值不值得购买?恒创科技是...

suspend是什么意思为你推荐
迈腾和帕萨特哪个好帕萨特和迈腾哪个车好?绝地求生加速器哪个好绝地求生用什么加速器比较好?苹果手机助手哪个好苹果手机助手哪个好游戏盒子哪个好游戏盒子哪个好?核芯显卡与独立显卡哪个好核芯显卡与独立显卡哪个好海克斯皮肤哪个好LOL用100块是抽海克斯好还是抽蛮王的生化领主的活动还是直接买皮肤好车险哪个好私家车买什么保险好播放器哪个好什么手机视频播放器比较好用?雅思和托福哪个好考雅思和托福哪个好考一点网页qq空间登录网页查看qq空间
海外域名注册 vps教程 免费域名跳转 a5域名交易 新加坡服务器 java主机 BWH 主机屋免费空间 jsp空间 hinet 免费活动 世界测速 电信虚拟主机 paypal注册教程 smtp虚拟服务器 云服务器比较 深圳域名 网站加速 电信主机托管 七十九刀 更多