2P13 Week 2.

Slides:



Advertisements
Similar presentations
Processes and Threads Chapter 3 and 4 Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community College,
Advertisements

More on Processes Chapter 3. Process image _the physical representation of a process in the OS _an address space consisting of code, data and stack segments.
Chapter 3 Process Description and Control
Memory Management Paging &Segmentation CS311, CS350 & CS550.
6/9/2015B.Ramamurthy1 Process Description and Control B.Ramamurthy.
Process Description and Control
Process Description and Control Module 1.0. Major Requirements of an Operating System Interleave the execution of several processes to maximize processor.
Process Description and Control Chapter 3. Major Requirements of an Operating System Interleave the execution of several processes to maximize processor.
Page 1 Processes and Threads Chapter Processes 2.2 Threads 2.3 Interprocess communication 2.4 Classical IPC problems 2.5 Scheduling.
1 What is a Process ? The activity of program execution. Also called a task or job Has associated with it: Code Data Resources A State An executing set.
1 Process Description and Control Chapter 3. 2 Process Management—Fundamental task of an OS The OS is responsible for: Allocation of resources to processes.
CSCE 351: Operating System Kernels
Chapter 8 Operating System Support
Advanced OS Chapter 3p2 Sections 3.4 / 3.5. Interrupts These enable software to respond to signals from hardware. The set of instructions to be executed.
Computer Organization and Architecture
Processes and Resources
1 When to Switch Processes 3 triggers –System call, Interrupt and Trap System call –when a user program invokes a system call. e.g., a system call that.
1 Lecture 4: Processes Operating System Spring 2007 Chapter 4 of textbook.
Process Description and Control A process is sometimes called a task, it is a program in execution.
Using Two Queues. Using Multiple Queues Suspended Processes Processor is faster than I/O so all processes could be waiting for I/O Processor is faster.
Layers and Views of a Computer System Operating System Services Program creation Program execution Access to I/O devices Controlled access to files System.
Process Description and Control. Process concepts n Definitions – replaces task, job – program in execution – entity that can be assigned to and executed.
Process Description and Control Chapter 3. Major Requirements of an OS Interleave the execution of several processes to maximize processor utilization.
Process Description and Control
Chapter 3 Process Description and Control
Chapter 5 Operating System Support. Outline Operating system - Objective and function - types of OS Scheduling - Long term scheduling - Medium term scheduling.
Chapter 41 Processes Chapter 4. 2 Processes  Multiprogramming operating systems are built around the concept of process (also called task).  A process.
Chapter 3 Process Description and Control
Chapter 3 Process Description and Control Operating Systems: Internals and Design Principles, 6/E William Stallings Dave Bremer Otago Polytechnic, N.Z.
Processes and Process Control 1. Processes and Process Control 2. Definitions of a Process 3. Systems state vs. Process State 4. A 2 State Process Model.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 3: Process-Concept.
Processes, Threads, and Process States. Programs and Processes  Program: an executable file (before/after compilation)  Process: an instance of a program.
Process Description and Control Chapter 3. Source Modified slides from Missouri U. of Science and Tech.
1 Process Description and Control Chapter 3. 2 Requirements of an Operating System Interleave the execution of multiple processes to maximize processor.
Chapter 2 Process Management. 2 Objectives After finish this chapter, you will understand: the concept of a process. the process life cycle. process states.
1 Process Description and Control Chapter 3. 2 Process A program in execution An instance of a program running on a computer The entity that can be assigned.
Process Control Management Prepared by: Dhason Operating Systems.
Process Description and Control. Process A program in execution OS Reponsibilities: –Creation/Termination –Scheduling processes –Suspension/resumption.
Processes and Threads Chapter 3 and 4 Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community College,
Applied Operating System Concepts
Processes and threads.
Memory Management Paging (continued) Segmentation
Chapter 3 – Process Concepts
Day 08 Processes.
Day 09 Processes.
William Stallings Computer Organization and Architecture
Process Description and Control
Structure of Processes
Memory Management Paging (continued) Segmentation
Process & its States Lecture 5.
Process Description and Control
Process Description and Control
Process Description and Control
Chapter 2 Processes and Threads 2.1 Processes 2.2 Threads
Process Description and Control
Process Control B.Ramamurthy 2/22/2019 B.Ramamurthy.
Process Description and Control
Process Description and Control
Process Description and Control
Process Description and Control
LINUX System : Lecture 7 Lecture notes acknowledgement : The design of UNIX Operating System.
Unix Process Control B.Ramamurthy 4/11/2019 B.Ramamurthy.
Chapter 2 Processes and Threads 2.1 Processes 2.2 Threads
Process Description and Control
CS 143A Principles of Operating Systems
Process Description and Control
Process Description and Control in Unix
Process Description and Control in Unix
Chapter 3: Processes Process Concept Process Scheduling
Memory Management Paging (continued) Segmentation
Presentation transcript:

2P13 Week 2

Table 3.1 Reasons for Process Creation 5 When a new process is to be added to those currently being managed, the OS builds the data structures that are used to manage the process and allocates address space in main memory to the process. We describe these data structures in Section 3.3 . These actions constitute the creation of a new process. Four common events lead to the creation of a process, as indicated in Table 3.1 . In a batch environment, a process is created in response to the submission of a job. In an interactive environment, a process is created when a new user attempts to log on. In both cases, the OS is responsible for the creation of the new process. An OS may also create a process on behalf of an application. For example, if a user requests that a file be printed, the OS can create a process that will manage the printing. The requesting process can thus proceed independently of the time required to complete the printing task. Traditionally, the OS created all processes in a way that was transparent to the user or application program, and this is still commonly found with many contemporary operating systems. However, it can be useful to allow one process to cause the creation of another. For example, an application process may generate another process to receive data that the application is generating and to organize those data into a form suitable for later analysis. The new process runs in parallel to the original process and is activated from time to time when new data are available. This arrangement can be very useful in structuring the application. Table 3.1 Reasons for Process Creation 1/15/12

Table 3.2 Reasons for Process Termination 6 1/15/12 Additionally, a number of error and fault conditions can lead to the termination of a process. Table 3.2 lists some of the more commonly recognized conditions. 3 Finally, in some operating systems, a process may be terminated by the process that created it or when the parent process is itself terminated. 6 Table 3.2 Reasons for Process Termination 1/15/12

Typical Elements of a Process Control Block Table 3.5 (continued) 14

Table 3.7 Typical Functions of an Operating System Kernel Process Management •Process creation and termination •Process scheduling and dispatching •Process switching •Process synchronization and support for interprocess communication •Management of process control blocks Memory Management •Allocation of address space to processes •Swapping •Page and segment management I/O Management •Buffer management •Allocation of I/O channels and devices to processes Support Functions •Interrupt handling •Accounting •Monitoring

Table 3.8 Mechanisms for Interrupting the Execution of a Process Cause Use Interrupt External to the execution of the current instruction Reaction to an asynchronous external event Trap Associated with the execution of the current instruction Handling of an error or an exception condition Supervisor call Explicit request Call to an operating system function

The End