I run dir you run dir same program different

Info icon This preview shows pages 5–12. Sign up to view the full content.

View Full Document Right Arrow Icon
I run dir , you run dir – same program, different processes 2) Less to a process than a program A program can invoke more than one process to get the job done e.g. cc starts up cpp, cc1, cc2
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
6 Process =? Program Process =? Program
Image of page 6
7 The Operating System The Operating System controls the machine controls the machine User Application Operating System Hardware OS Kernel Hard ware gcc gdb emacs vi date grep xterm netscape diff
Image of page 7

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Components of an OS Components of an OS
Image of page 8
9 Process Management Process Management Creation/deletion of a process Create and make available, an execution environment?? Suspension/resumption and CPU scheduling in a fair manner?? Mechanisms for synchronization Mechanisms for inter-process communication Deadlock handling
Image of page 9

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
10 Process Process A Context for Computation Defined by: Its CPU state:? (register values) Its address space:? (memory contents) Its environment:? (as reflected in operating system tables) CPU registers contain the current state 1. Processor Status Word (PSW): includes bits Privileged or normal Outcome of the last arithmetic operation (zero,-ve, +ve, overflow, carry) Which interrupts are allowed and which are not
Image of page 10
11 CPU State CPU State 2. Instruction Register (IR): The current instruction being executed 3. Program Counter (PC):
Image of page 11

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 12
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern