ch3.ppt - Chapter 3 Processes Operating System Concepts –...

  • No School
  • AA 1
  • 71

This preview shows page 1 - 11 out of 71 pages.

Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Chapter 3: Processes
Image of page 1
3.2 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Chapter 3: Processes Process Concept Process Scheduling Operations on Processes Interprocess Communication Examples of IPC Systems Communication in Client-Server Systems
Image of page 2
3.3 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Objectives To introduce the notion of a process -- a program in execution, which forms the basis of all computation To describe the various features of processes, including scheduling, creation and termination, and communication To explore interprocess communication using shared memory and message passing To describe communication in client-server systems
Image of page 3
3.4 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Process Concept An operating system executes a variety of programs: Batch system – jobs Time-shared systems – user programs or tasks Textbook uses the terms job and process almost interchangeably Process – a program in execution; process execution must progress in sequential fashion Multiple parts The program code, also called text section Current activity including program counter , processor registers Stack containing temporary data Function parameters, return addresses, local variables Data section containing global variables Heap containing memory dynamically allocated during run time
Image of page 4
3.5 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Process Concept (Cont.) Program is passive entity stored on disk ( executable file ), process is active Program becomes process when executable file loaded into memory Execution of program started via GUI mouse clicks, command line entry of its name, etc One program can be several processes Consider multiple users executing the same program
Image of page 5
3.6 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Process in Memory
Image of page 6
3.7 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Process State As a process executes, it changes state new : The process is being created running : Instructions are being executed waiting : The process is waiting for some event to occur ready : The process is waiting to be assigned to a processor terminated : The process has finished execution
Image of page 7
3.8 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Diagram of Process State
Image of page 8
3.9 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition 重画,方便记忆 ready running new terminated waiting admitte d scheduler dispatch interrupt exit I / O or event wait I / O or event completion 牛头图:操作系统课最重要的图
Image of page 9
3.10 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition 示例: 示例: Linux Linux 进程的状态及其转移 进程的状态及其转移
Image of page 10
Image of page 11

You've reached the end of your free preview.

Want to read all 71 pages?

  • Fall '19

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

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors