DOC PREVIEW
Princeton COS 217 - Processes and Pipes

This preview shows page 1-2-19-20 out of 20 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 20 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 20 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 20 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 20 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 20 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Processes and PipesWhen to Change Which Process is Running?Life Cycle of a ProcessSwitching Between ProcessesForkForkWaitExecFork/ExecSystemNetworksInterprocess CommunicationPipesCreating a PipePipe ExampleDupDup2Pipes and StdioPipes and ExecA Unix Shell!1Processes and PipesCOS 217Prof. David August2When to Change Which Process is Running?• When a process is stalled waiting for I/Oo Better utilize the CPU, e.g., while waiting for disk access• When a process has been running for a whileo Sharing on a fine time scale to give each process the illusion of running on its own machineo Trade-off efficiency for a finer granularity of fairnessCPUCPUCPUI/OI/O I/O1:CPUCPUCPUI/OI/O I/O2:3Life Cycle of a Process• Running: instructions are being executed•Waiting:waiting for some event (e.g., I/O finish) • Ready: ready to be assigned to a processorCreate Ready Running TerminationWaiting4Switching Between ProcessesRunningRunningSave contextLoad contextSave contextLoad context......Process 1Process 2RunningWaitingWaitingWaiting5Fork6Fork7Wait8Exec9Fork/Exec10System11Networks12Interprocess Communication13Pipes14Creating a Pipe15Pipe Example16Dup17Dup218Pipes and Stdio19Pipes and Exec20A Unix


View Full Document

Princeton COS 217 - Processes and Pipes

Documents in this Course
Summary

Summary

4 pages

Lecture

Lecture

4 pages

Generics

Generics

14 pages

Generics

Generics

16 pages

Lecture

Lecture

20 pages

Debugging

Debugging

35 pages

Types

Types

7 pages

Lecture

Lecture

21 pages

Assembler

Assembler

16 pages

Lecture

Lecture

20 pages

Lecture

Lecture

39 pages

Testing

Testing

44 pages

Pipeline

Pipeline

19 pages

Lecture

Lecture

6 pages

Signals

Signals

67 pages

Building

Building

17 pages

Lecture

Lecture

7 pages

Modules

Modules

12 pages

Generics

Generics

16 pages

Testing

Testing

22 pages

Signals

Signals

34 pages

Lecture

Lecture

19 pages

Load more
Download Processes and Pipes
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Processes and Pipes and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Processes and Pipes 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?