1 / 8

Process Control

Process Control. Hardware baggrund Process begrebet i et OS Process tilstande Context switching. Hardware baggrund. CPU’en (processor) Instuktions udførelse (Instr. Cycle) CPU’ens forbindelse til I/O-enhederne Interruptet CPU’ens reaktion på hardware interruptet

dalila
Download Presentation

Process Control

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Process Control Hardware baggrund Process begrebet i et OS Process tilstande Context switching

  2. Hardware baggrund • CPU’en (processor) • Instuktions udførelse (Instr. Cycle) • CPU’ens forbindelse til I/O-enhederne • Interruptet • CPU’ens reaktion på hardware interruptet • Timer interrupt – også et hardware intr. • Registrene – (Intel) • Code, data, stack • Status • Instruction-pointer, stack-pointer • Ram lager • I/O processorerne

  3. Program Under udførelse • Tegning på tavlen

  4. Operativsystemet • Kernel placeret i Ram-lageret • Unix hovedbestanddele • Intro to Kernel (ItK)– side 2

  5. Unix process tilstande • Process table • Region table - ItK side 10, SOP side 7 • User area • File references – ItK side 5 • Environment Variables – se kørende system • Se Struc. Of Process (SOP)side 4 og 5 • Process Tilstande – SOP side 3

  6. System kald angående processer • fork() • Process Control System Calls (PCSC) – side 3 • Tegning af mem. Ved fork() – PCSC side 6 • Signal() – asynchronous events • Signals –PCSC – side 10 • Hvornår behandles signaler – PCSC side 12 • signal() – kaldet - PCSC side 13 • Kill() – send a signal – PCSC side 20

  7. Process Termination • exit() – kaldet – PCSC side 22 • Algoritme for exit() – PCSC side 22 • wait() –kaldet – vent på en anden process terminering – PCSC side 24 • Process er i zombie tilstand indtil exit-code er afleveret via wait() • Spec Signal – Death-of-Child • exec()-kaldet – start et andet program • Se andre noter

  8. Main loop of the shell • PCSC side 42 og 43 • Process sammenhæng ved pipes (|)

More Related