COMP 3430 Robert Guderian
|
|
- Vivian Kristin Dennis
- 5 years ago
- Views:
Transcription
1 Operating Systems COMP 3430 Robert Guderian file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 1/53 1
2 Processes file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 2/53 2
3 Textbook references Chapter 4, 13 file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 3/53 3
4 What are they You've used them in a simple way You've made and run programs file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 4/53 4
5 Process vs Program A process is an instance of a program. The same program can be run many times (even at the same time) Each instance is a different process file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 5/53 5
6 Processes and the OS The OS has to track all the processes that are running Tracks: Resources Threads State file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 6/53 6
7 Time-sharing OSes run multiple processes "at the same time" Not really Processes share time on the CPU More on this in scheduling (some spoilers within) file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 7/53 7
8 Process life cycle New -> waiting -> running -> (repeat) -> complete Waiting processes New process CPU Finished Dispatcher Incomplete: to back of the queue file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 8/53 8
9 New process Allocate space Data structures for it (much more later) Program code loaded file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 9/53 9
10 Running Running is also a state machine, job is dispatched (via the dispatcher) Start in READY/WAIT state OS does scheduling (next week...) to put it into RUN BLOCKED - waiting for some event This process gets some time on CPU Go back to READY/WAIT or... file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 10/53 10
11 Complete Clean up resources. Deallocate memory Remove from all queues file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 11/53 11
12 Processes flowing through the system Obviously OSes run more than one process 1 process per processor (hyperthreading not withstanding) We need a queue of waiting processes processes are in "READY" state file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 12/53 12
13 Visualized Recap: Waiting processes New process CPU Finished Dispatcher Incomplete: to back of the queue file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 13/53 13
14 I/O Not a smart use of CPU time What if a process is waiting for an event? CPU has better things to do Processes that are not blocked should run Goes into a BLOCKED state Returns to the READY queue when block clears file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 14/53 14
15 Flow file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 15/53
16 Arpaci-Dusseau file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 16/53 15
17 There's got to be a better way file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 17/53 16
18 Add more queues! Events exiting the CPU (running state) can go to many places If not blocked, back to "READY" queue If blocked, goes to an event queue One event queue per event type When exiting event queue, the process goes to READY queue This turns into a scheduling problem (more later!) file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 18/53 17
19 What if all processes are blocked? What does the processor do? System idle process! Basically avoids a null pointer exception-like error file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 19/53 18
20 You may have seen it... file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 20/53 19
21 More complete view of process states: file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 21/53 20
22 Back to processes More on scheduling later What does a process look like in an OS? What to processes need to function? file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 22/53 21
23 The OS Tracks all: All processes The memory allocated to each (segregation/isolation) I/O for each process Files open for each process Table for each piece of data file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 23/53 22
24 Process image What does a process look like to an OS? Keeps track of the resources. A data structure that is a an abstraction of a process! file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 24/53 23
25 What it looks like PCB Stack \ (\downarrow\) Heap \ (\uparrow\) Static data Code file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 25/53 24
26 What it looks like file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 26/53
27 Process image via Peter Graham 7/11/2018 Operating Systems file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 27/53 25
28 The PCB Holds all the metadata for the process: 1. Process ID 2. Parent Process ID 3. Owner 4. Process state information State, priority, open files Registers 5. Memory allocated file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 28/53 26
29 The /proc filesystem Linux (but not Mac OS) has process information in /proc. See man proc. Notable: /proc/(pid)/exe - symlink to the executing code /proc/(pid)/fd/ - folder that has entries for file descriptors /proc/(pid)/map - mapped memory addresses file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 29/53 27
30 The /proc filesystem More notable: Anything oom means out-of-memory /proc/(pid)/stat - status of the process /proc/(pid)/status - more human-readable version file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 30/53 28
31 ps ps exposes some of this to us ps axo stat,euid,ruid,tty,tpgid,sess,pgrp,ppid,pid,pcpu,comm file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 31/53 29
32 Mode switching PCB maintains state user vs kernel mode file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 32/53 30
33 Kernel mode Can run privileged code in the operating system System calls, signals, interrupts Access devices file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 33/53 31
34 User mode The normal execution Restricted to memory space of this process Data processing, computation file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 34/53 32
35 Mode switching is cheap Toggle a bit in the PCB That's it! file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 35/53 33
36 Context switching Moving to a different process in the CPU PCB Maintains state as it goes in and out of RUN state Save registers, spot of execution (instruction pointer) Move current into a wait queue, run next task Unpack the PCB from next process, dispatch file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 36/53 34
37 Context switching is expensive But it happens all the time Required switching to run multiple programs on a processor file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 37/53 35
38 Processes - how to We fork processes Why: because everything is graph theory! file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 38/53 36
39 Process parent/child relationship Consider: #include <stdio.h> #include <unistd.h> int main() { printf("pid=%d parent=%d\n",getpid(),getppid()); } Run it a bunch of times, who is always your parent? Tip: ps file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 39/53 37
40 About fork What does it return? man fork... file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 40/53 38
41 About fork We now have 2 processes, so the code... forks... into two different places! 0 if you are in the child process The child process ID if you're in the parent process file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 41/53 39
42 Attack of the clones The two processes have the same: memory contents open files register values Different PIDs and OS data structures file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 42/53 40
43 Fork, visualized file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 43/53 41
44 ps,, again Try: ps axo stat,ppid,pid,pcpu,comm file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 44/53 42
45 unistd.h functions for processes exec - execute an external program man 3 exec - a few different options Open Group specifications wait - wait for completion of other processes file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 45/53 43
46 About exec Runs code that is external from this codebase Keeps the same PID, does not start a new process file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 46/53 44
47 UNIX System Initialization fork at every step. We can see this from ps Bootstrap -> swapper swapper forks init systemd forks terminal instances (getty) getty does login, gives us a shell (bash, sh,...) sh forks processes for commands we run file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 47/53 45
48 Kernel design The kernel does the scheduling/process switching/resource handling for us A few different designs file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 48/53 46
49 1. Separate kernel OS maintains its own memory and stack When a process stops: switch modes (cheap) Save state OS executes - prepare next process Switch to new process (context switch) file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 49/53 47
50 2. Execution within user process Process maintains 2 stacks (user and kernel) OS code lives in user address space When control goes to OS, do mode switch Execution stays in process! When OS finishes, return to user process (mode switch) file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 50/53 48
51 3. Process-based OS Major kernel tasks run in processes alongside other processes Modular design, run any kernel processes Smart for multi-core file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 51/53 49
52 In reality: Unix is a mix of 2 and 3 Can do mode switches within processes Has Kernel/OS tasks running alongside our tasks file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 52/53 50
53 References Code examples Linux PCB aka task_struct Linux PID In-class examples file:///users/robg/dropbox/teaching/ /slides/03_processes/index.html?print-pdf#/ 53/53 51
1/13/2019 Operating Systems. file:///volumes/users/rasit/desktop/comp3430/coursematerial/slides/03_processes/index.html?
Operating Systems COMP 3430 Eskicioglu & Guderian file:///volumes/users/rasit/desktop/comp3430/coursematerial/slides/03_processes/index.html?print-pdf#/ 1/52 1 Processes file:///volumes/users/rasit/desktop/comp3430/coursematerial/slides/03_processes/index.html?print-pdf#/
More informationOperating System Labs. Yuanbin Wu
Operating System Labs Yuanbin Wu cs@ecnu Anouncement Project 1 due 21:00 Oct. 4th FTP In campus: direct connection Out of campus: VPN Windows: cmd \\222.204.249.4:5010 Linux: ftp 222.204.249.4 5010 Operating
More informationChap 4, 5: Process. Dongkun Shin, SKKU
Chap 4, 5: Process 1 Process Concept Job A bundle of program and data to be executed An entity before submission for execution Process (= running program) An entity that is registered to kernel for execution
More informationIntroduction to OS Processes in Unix, Linux, and Windows MOS 2.1 Mahmoud El-Gayyar
Introduction to OS Processes in Unix, Linux, and Windows MOS 2.1 Mahmoud El-Gayyar elgayyar@ci.suez.edu.eg Mahmoud El-Gayyar / Introduction to OS 1 Processes in Unix, Linux, and Windows Unix pre-empted
More informationLecture 4: Process Management
Lecture 4: Process Management (Chapters 2-3) Process: execution context of running program. A process does not equal a program! Process is an instance of a program Many copies of same program can be running
More informationProcesses. Process Concept
Processes These slides are created by Dr. Huang of George Mason University. Students registered in Dr. Huang s courses at GMU can make a single machine readable copy and print a single copy of each slide
More informationProcesses and Threads. Processes and Threads. Processes (2) Processes (1)
Processes and Threads (Topic 2-1) 2 홍성수 Processes and Threads Question: What is a process and why is it useful? Why? With many things happening at once in a system, need some way of separating them all
More informationProcess a program in execution; process execution must progress in sequential fashion. Operating Systems
Process Concept An operating system executes a variety of programs: Batch system jobs Time-shared systems user programs or tasks 1 Textbook uses the terms job and process almost interchangeably Process
More informationProcess. Heechul Yun. Disclaimer: some slides are adopted from the book authors slides with permission 1
Process Heechul Yun Disclaimer: some slides are adopted from the book authors slides with permission 1 Recap OS services Resource (CPU, memory) allocation, filesystem, communication, protection, security,
More informationECE 550D Fundamentals of Computer Systems and Engineering. Fall 2017
ECE 550D Fundamentals of Computer Systems and Engineering Fall 2017 The Operating System (OS) Prof. John Board Duke University Slides are derived from work by Profs. Tyler Bletsch and Andrew Hilton (Duke)
More informationCPSC 341 OS & Networks. Processes. Dr. Yingwu Zhu
CPSC 341 OS & Networks Processes Dr. Yingwu Zhu Process Concept Process a program in execution What is not a process? -- program on a disk A process is an active object, but a program is just a file It
More informationStart of Lecture on January 17, Chapter 3: Processes
Start of Lecture on January 17, 2014 1 Reminders No reminders What are your questions or comments? 2 Example: Creating with fork() Run fork1.c and fork2.c parent resumes here if ( fork() ) { } else { exec(
More informationLecture Topics. Announcements. Today: Threads (Stallings, chapter , 4.6) Next: Concurrency (Stallings, chapter , 5.
Lecture Topics Today: Threads (Stallings, chapter 4.1-4.3, 4.6) Next: Concurrency (Stallings, chapter 5.1-5.4, 5.7) 1 Announcements Make tutorial Self-Study Exercise #4 Project #2 (due 9/20) Project #3
More informationUnix Processes. What is a Process?
Unix Processes Process -- program in execution shell spawns a process for each command and terminates it when the command completes Many processes all multiplexed to a single processor (or a small number
More informationProcesses. OS Structure. OS Structure. Modes of Execution. Typical Functions of an OS Kernel. Non-Kernel OS. COMP755 Advanced Operating Systems
OS Structure Processes COMP755 Advanced Operating Systems An OS has many parts. The Kernel is the core of the OS. It controls the execution of the system. Many OS features run outside of the kernel, such
More informationProcesses. Sanzheng Qiao. December, Department of Computing and Software
Processes Sanzheng Qiao Department of Computing and Software December, 2012 What is a process? The notion of process is an abstraction. It has been given many definitions. Program in execution is the most
More informationProcesses & Threads. Recap of the Last Class. Layered Structure. Virtual Machines. CS 256/456 Dept. of Computer Science, University of Rochester
Recap of the Last Class Processes & Threads CS 256/456 Dept. of Computer Science, University of Rochester Hardware protection kernel and mode System components process management, memory management, I/O
More informationProcesses. CS3026 Operating Systems Lecture 05
Processes CS3026 Operating Systems Lecture 05 Dispatcher Admit Ready Queue Dispatch Processor Release Timeout or Yield Event Occurs Blocked Queue Event Wait Implementation: Using one Ready and one Blocked
More informationProcesses. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University
Processes Jin-Soo Kim (jinsookim@skku.edu) Computer Systems Laboratory Sungkyunkwan University http://csl.skku.edu OS Internals User space shell ls trap shell ps Kernel space File System Management I/O
More informationGetting to know you. Anatomy of a Process. Processes. Of Programs and Processes
Getting to know you Processes A process is an abstraction that supports running programs A sequential stream of execution in its own address space A process is NOT the same as a program! So, two parts
More informationProcesses & Threads. Recap of the Last Class. Microkernel System Architecture. Layered Structure
Recap of the Last Class Processes & Threads CS 256/456 Dept. of Computer Science, University of Rochester Hardware protection kernel and user mode System components process management, memory management,
More informationPROCESS CONTROL BLOCK TWO-STATE MODEL (CONT D)
MANAGEMENT OF APPLICATION EXECUTION PROCESS CONTROL BLOCK Resources (processor, I/O devices, etc.) are made available to multiple applications The processor in particular is switched among multiple applications
More informationProcesses & Threads. Today. Next Time. ! Process concept! Process model! Implementing processes! Multiprocessing once again. ! More of the same J
Processes & Threads Today! Process concept! Process model! Implementing processes! Multiprocessing once again Next Time! More of the same J The process model! Most computers can do more than one thing
More informationProcess. Heechul Yun. Disclaimer: some slides are adopted from the book authors slides with permission
Process Heechul Yun Disclaimer: some slides are adopted from the book authors slides with permission 1 Recap OS services Resource (CPU, memory) allocation, filesystem, communication, protection, security,
More informationChapter 3: Processes. Operating System Concepts 9 th Edit9on
Chapter 3: Processes Operating System Concepts 9 th Edit9on Silberschatz, Galvin and Gagne 2013 Chapter 3: Processes 1. Process Concept 2. Process Scheduling 3. Operations on Processes 4. Interprocess
More informationOperating Systems. Lecture 05
Operating Systems Lecture 05 http://web.uettaxila.edu.pk/cms/sp2013/seosbs/ February 25, 2013 Process Scheduling, System Calls Execution (Fork,Wait,Exit,Exec), Inter- Process Communication Schedulers Long
More informationCSCE 313 Introduction to Computer Systems. Instructor: Dezhen Song
CSCE 313 Introduction to Computer Systems Instructor: Dezhen Song Programs, Processes, and Threads Programs and Processes Threads Programs, Processes, and Threads Programs and Processes Threads Processes
More informationPROCESSES. Jo, Heeseung
PROCESSES Jo, Heeseung TODAY'S TOPICS What is the process? How to implement processes? Inter-Process Communication (IPC) 2 WHAT IS THE PROCESS? Program? vs. Process? vs. Processor? 3 PROCESS CONCEPT (1)
More informationProcesses. Jo, Heeseung
Processes Jo, Heeseung Today's Topics What is the process? How to implement processes? Inter-Process Communication (IPC) 2 What Is The Process? Program? vs. Process? vs. Processor? 3 Process Concept (1)
More informationCSCE 313: Intro to Computer Systems
CSCE 313 Introduction to Computer Systems Instructor: Dr. Guofei Gu http://courses.cse.tamu.edu/guofei/csce313/ Programs, Processes, and Threads Programs and Processes Threads 1 Programs, Processes, and
More informationPROCESS MANAGEMENT. Operating Systems 2015 Spring by Euiseong Seo
PROCESS MANAGEMENT Operating Systems 2015 Spring by Euiseong Seo Today s Topics Process Concept Process Scheduling Operations on Processes Interprocess Communication Examples of IPC Systems Communication
More informationWhat is a Process. Processes. Programs and Processes. System Classification 3/5/2013. Process: An execution stream and its associated state
What is a Process Process: An execution stream and its associated state Processes Execution Stream Set of instructions Thread of control Process State Hardware state Privilege level, segments, page tables
More informationComputer Systems II. First Two Major Computer System Evolution Steps
Computer Systems II Introduction to Processes 1 First Two Major Computer System Evolution Steps Led to the idea of multiprogramming (multiple concurrent processes) 2 1 At First (1945 1955) In the beginning,
More informationwww nfsd emacs lpr Process Management CS 537 Lecture 4: Processes Example OS in operation Why Processes? Simplicity + Speed
Process Management CS 537 Lecture 4: Processes Michael Swift This lecture begins a series of topics on processes, threads, and synchronization Today: processes and process management what are the OS units
More informationRicardo Rocha. Department of Computer Science Faculty of Sciences University of Porto
Ricardo Rocha Department of Computer Science Faculty of Sciences University of Porto Slides based on the book Operating System Concepts, 9th Edition, Abraham Silberschatz, Peter B. Galvin and Greg Gagne,
More informationProcesses. Process Management Chapter 3. When does a process gets created? When does a process gets terminated?
Processes Process Management Chapter 3 1 A process is a program in a state of execution (created but not terminated) Program is a passive entity one on your disk (survivor.class, kelly.out, ) Process is
More informationW4118 Operating Systems. Junfeng Yang
W4118 Operating Systems Junfeng Yang What is a process? Outline Process dispatching Common process operations Inter-process Communication What is a process Program in execution virtual CPU Process: an
More informationOS lpr. www. nfsd gcc emacs ls 1/27/09. Process Management. CS 537 Lecture 3: Processes. Example OS in operation. Why Processes? Simplicity + Speed
Process Management CS 537 Lecture 3: Processes Michael Swift This lecture begins a series of topics on processes, threads, and synchronization Today: processes and process management what are the OS units
More informationProcesses. Dr. Yingwu Zhu
Processes Dr. Yingwu Zhu Process Growing Memory Stack expands automatically Data area (heap) can grow via a system call that requests more memory - malloc() in c/c++ Entering the kernel (mode) Hardware
More informationAgenda Process Concept Process Scheduling Operations on Processes Interprocess Communication 3.2
Lecture 3: Processes Agenda Process Concept Process Scheduling Operations on Processes Interprocess Communication 3.2 Process in General 3.3 Process Concept Process is an active program in execution; process
More informationProcesses COMPSCI 386
Processes COMPSCI 386 Elements of a Process A process is a program in execution. Distinct processes may be created from the same program, but they are separate execution sequences. call stack heap STACK
More informationChapter 3: Processes
Chapter 3: Processes Silberschatz, Galvin and Gagne 2013 Chapter 3: Processes Process Concept Process Scheduling Operations on Processes Interprocess Communication 3.2 Silberschatz, Galvin and Gagne 2013
More informationFall 2015 COMP Operating Systems. Lab #3
Fall 2015 COMP 3511 Operating Systems Lab #3 Outline n Operating System Debugging, Generation and System Boot n Review Questions n Process Control n UNIX fork() and Examples on fork() n exec family: execute
More informationWhat is a Process? Processes and Process Management Details for running a program
1 What is a Process? Program to Process OS Structure, Processes & Process Management Don Porter Portions courtesy Emmett Witchel! A process is a program during execution. Ø Program = static file (image)
More informationWeek 2 Intro to the Shell with Fork, Exec, Wait. Sarah Diesburg Operating Systems CS 3430
Week 2 Intro to the Shell with Fork, Exec, Wait Sarah Diesburg Operating Systems CS 3430 1 Why is the Shell Important? Shells provide us with a way to interact with the core system Executes programs on
More informationMon Sep 17, 2007 Lecture 3: Process Management
Mon Sep 17, 2007 Lecture 3: Process Management September 19, 2007 1 Review OS mediates between hardware and user software QUIZ: Q: Name three layers of a computer system where the OS is one of these layers.
More informationOperating System Design
Operating System Design Processes Operations Inter Process Communication (IPC) Neda Nasiriani Fall 2018 1 Process 2 Process Lifecycle 3 What information is needed? If you want to design a scheduler to
More information518 Lecture Notes Week 3
518 Lecture Notes Week 3 (Sept. 15, 2014) 1/8 518 Lecture Notes Week 3 1 Topics Process management Process creation with fork() Overlaying an existing process with exec Notes on Lab 3 2 Process management
More informationProcesses. Today. Next Time. ! Process concept! Process model! Implementing processes! Multiprocessing once again. ! Scheduling processes
Processes Today! Process concept! Process model! Implementing processes! Multiprocessing once again Next Time! Scheduling processes The process model! Most computers can do more than one thing at a time
More informationFall 2017 :: CSE 306. Process Abstraction. Nima Honarmand
Process Abstraction Nima Honarmand Administrivia Course staff email: cse306ta at cs.stonybrook.edu Both Babak and I will be monitoring the account to ensure a timely response What to use it for: any email
More informationChapter 3: Process Concept
Chapter 3: Process Concept Chapter 3: Process Concept Process Concept Process Scheduling Operations on Processes Inter-Process Communication (IPC) Communication in Client-Server Systems Objectives 3.2
More informationChapter 3: Process Concept
Chapter 3: Process Concept Chapter 3: Process Concept Process Concept Process Scheduling Operations on Processes Inter-Process Communication (IPC) Communication in Client-Server Systems Objectives 3.2
More informationOS Structure, Processes & Process Management. Don Porter Portions courtesy Emmett Witchel
OS Structure, Processes & Process Management Don Porter Portions courtesy Emmett Witchel 1 What is a Process?! A process is a program during execution. Ø Program = static file (image) Ø Process = executing
More informationProcesses. CS 475, Spring 2018 Concurrent & Distributed Systems
Processes CS 475, Spring 2018 Concurrent & Distributed Systems Review: Abstractions 2 Review: Concurrency & Parallelism 4 different things: T1 T2 T3 T4 Concurrency: (1 processor) Time T1 T2 T3 T4 T1 T1
More informationChapter 3: Process Concept
Chapter 3: Process Concept Silberschatz, Galvin and Gagne 2013! Chapter 3: Process Concept Process Concept" Process Scheduling" Operations on Processes" Inter-Process Communication (IPC)" Communication
More informationAnnouncements Processes: Part II. Operating Systems. Autumn CS4023
Operating Systems Autumn 2018-2019 Outline Announcements 1 Announcements 2 Announcements Week04 lab: handin -m cs4023 -p w04 ICT session: Introduction to C programming Outline Announcements 1 Announcements
More informationCS370: System Architecture & Software [Fall 2014] Dept. Of Computer Science, Colorado State University
CS 370: SYSTEM ARCHITECTURE & SOFTWARE [PROCESSES] Shrideep Pallickara Computer Science Colorado State University Frequently asked questions from the previous class survey Symmetric multiprocessing Why
More informationCSE 410: Computer Systems Spring Processes. John Zahorjan Allen Center 534
CSE 410: Computer Systems Spring 2018 Processes John Zahorjan zahorjan@cs.washington.edu Allen Center 534 1. What is a process? Processes 2. What's the process namespace? 3. How are processes represented
More informationFrequently asked questions from the previous class survey
CS 370: OPERATING SYSTEMS [PROCESSES] Shrideep Pallickara Computer Science Colorado State University L3.1 Frequently asked questions from the previous class survey Processors, CPU, and Core: Can we please
More informationCS 111. Operating Systems Peter Reiher
Operating System Principles: Processes, Execution, and State Operating Systems Peter Reiher Page 1 Outline What are processes? How does an operating system handle processes? How do we manage the state
More informationProcess Concept. Minsoo Ryu. Real-Time Computing and Communications Lab. Hanyang University.
Process Concept Minsoo Ryu Real-Time Computing and Communications Lab. Hanyang University msryu@hanyang.ac.kr Topics Covered Process Concept Definition, states, PCB Process Scheduling Scheduling queues,
More informationProcesses. slide 1 kv, gm. Silberschatz chapter 3
Processes slide 1 Silberschatz chapter 3 Process concepts slide 2 definition of a process (sometimes called a Task) aprogram in execution an executable file + some kind of dynamic data managed by the OS
More informationProcess concepts. Processes. Process in Memory. Process Creation. definition of a process (sometimes called a Task) aprogram in execution
Processes slide 1 Process concepts slide 2 Silberschatz chapter 3 definition of a process (sometimes called a Task) aprogram in execution an executable file + some kind of dynamic data managed by the OS
More informationREVIEW OF COMMONLY USED DATA STRUCTURES IN OS
REVIEW OF COMMONLY USED DATA STRUCTURES IN OS NEEDS FOR EFFICIENT DATA STRUCTURE Storage complexity & Computation complexity matter Consider the problem of scheduling tasks according to their priority
More informationCSE 451: Operating Systems Winter Module 4 Processes. Mark Zbikowski Allen Center 476
CSE 451: Operating Systems Winter 2015 Module 4 Processes Mark Zbikowski mzbik@cs.washington.edu Allen Center 476 2013 Gribble, Lazowska, Levy, Zahorjan Process management This module begins a series of
More informationProcesses and Non-Preemptive Scheduling. Otto J. Anshus
Processes and Non-Preemptive Scheduling Otto J. Anshus Threads Processes Processes Kernel An aside on concurrency Timing and sequence of events are key concurrency issues We will study classical OS concurrency
More informationProcess Concepts. CSC400 - Operating Systems. 3. Process Concepts. J. Sumey
CSC400 - Operating Systems 3. Process Concepts J. Sumey Overview Concurrency Processes & Process States Process Accounting Interrupts & Interrupt Processing Interprocess Communication CSC400 - Process
More informationProcesses and More. CSCI 315 Operating Systems Design Department of Computer Science
Processes and More CSCI 315 Operating Systems Design Department of Computer Science Notice: The slides for this lecture have been largely based on those accompanying the textbook Operating Systems Concepts,
More informationCS 111. Operating Systems Peter Reiher
Operating System Principles: Processes, Execution, and State Operating Systems Peter Reiher Page 1 Outline What are processes? How does an operating system handle processes? How do we manage the state
More informationChapter 3: Processes
Chapter 3: Processes Silberschatz, Galvin and Gagne 2013 Chapter 3: Processes Process Concept Process Scheduling Operations on Processes Interprocess Communication Examples of IPC Systems Communication
More informationOperating Systems. Computer Science & Information Technology (CS) Rank under AIR 100
GATE- 2016-17 Postal Correspondence 1 Operating Systems Computer Science & Information Technology (CS) 20 Rank under AIR 100 Postal Correspondence Examination Oriented Theory, Practice Set Key concepts,
More informationOperating Systems. Figure: Process States. 1 P a g e
1. THE PROCESS CONCEPT A. The Process: A process is a program in execution. A process is more than the program code, which is sometimes known as the text section. It also includes the current activity,
More informationAnnouncement. Exercise #2 will be out today. Due date is next Monday
Announcement Exercise #2 will be out today Due date is next Monday Major OS Developments 2 Evolution of Operating Systems Generations include: Serial Processing Simple Batch Systems Multiprogrammed Batch
More informationProcesses. CS439: Principles of Computer Systems January 24, 2018
Processes CS439: Principles of Computer Systems January 24, 2018 Last Time History Lesson Hardware expensive, humans cheap Hardware cheap, humans expensive Hardware very cheap, humans very expensive Dual-mode
More informationReading Assignment 4. n Chapter 4 Threads, due 2/7. 1/31/13 CSE325 - Processes 1
Reading Assignment 4 Chapter 4 Threads, due 2/7 1/31/13 CSE325 - Processes 1 What s Next? 1. Process Concept 2. Process Manager Responsibilities 3. Operations on Processes 4. Process Scheduling 5. Cooperating
More informationProcesses. CS 416: Operating Systems Design, Spring 2011 Department of Computer Science Rutgers University
Processes Design, Spring 2011 Department of Computer Science Von Neuman Model Both text (program) and data reside in memory Execution cycle Fetch instruction Decode instruction Execute instruction CPU
More informationOperating Systems. II. Processes
Operating Systems II. Processes Ludovic Apvrille ludovic.apvrille@telecom-paristech.fr Eurecom, office 470 http://soc.eurecom.fr/os/ @OS Eurecom Outline Concepts Definitions and basic concepts Process
More informationRoadmap. Tevfik Ko!ar. CSC Operating Systems Spring Lecture - III Processes. Louisiana State University. Virtual Machines Processes
CSC 4103 - Operating Systems Spring 2008 Lecture - III Processes Tevfik Ko!ar Louisiana State University January 22 nd, 2008 1 Roadmap Virtual Machines Processes Basic Concepts Context Switching Process
More informationOS lpr. www. nfsd gcc emacs ls 9/18/11. Process Management. CS 537 Lecture 4: Processes. The Process. Why Processes? Simplicity + Speed
Process Management CS 537 Lecture 4: Processes Today: processes and process management what are the OS units of execution? how are they represented inside the OS? how is the CPU scheduled across processes?
More informationProcesses. Overview. Processes. Process Creation. Process Creation fork() Processes. CPU scheduling. Pål Halvorsen 21/9-2005
INF060: Introduction to Operating Systems and Data Communication Operating Systems: Processes & CPU Pål Halvorsen /9-005 Overview Processes primitives for creation and termination states context switches
More informationDr. D. M. Akbar Hussain DE5 Department of Electronic Systems
Process /Task 1 Process Management Creation & termination of processes (user + System) Interleaving the execution of processes Scheduling of processes Synchronization mechanism between processes Communication
More informationProcesses. Process Scheduling, Process Synchronization, and Deadlock will be discussed further in Chapters 5, 6, and 7, respectively.
Processes Process Scheduling, Process Synchronization, and Deadlock will be discussed further in Chapters 5, 6, and 7, respectively. 1. Process Concept 1.1 What is a Process? A process is a program in
More informationChapter 3: Processes. Operating System Concepts 8th Edition, modified by Stewart Weiss
Chapter 3: Processes Operating System Concepts 8 Edition, Chapter 3: Processes Process Concept Process Scheduling Operations on Processes Interprocess Communication Examples of IPC Systems Communication
More informationLast time: introduction. Networks and Operating Systems ( ) Chapter 2: Processes. This time. General OS structure. The kernel is a program!
ADRIAN PERRIG & TORSTEN HOEFLER Networks and Operating Systems (252-0062-00) Chapter 2: Processes Last time: introduction Introduction: Why? February 12, 2016 Roles of the OS Referee Illusionist Glue Structure
More informationProcess management. What s in a process? What is a process? The OS s process namespace. A process s address space (idealized)
Process management CSE 451: Operating Systems Spring 2012 Module 4 Processes Ed Lazowska lazowska@cs.washington.edu Allen Center 570 This module begins a series of topics on processes, threads, and synchronization
More informationOperating Systems CMPSCI 377 Spring Mark Corner University of Massachusetts Amherst
Operating Systems CMPSCI 377 Spring 2017 Mark Corner University of Massachusetts Amherst Clicker Question #1 Program == Process (A) True (B) False Answer on Next Slide The Big Picture So Far Hardware abstraction
More informationWhat Is A Process? Process States. Process Concept. Process Control Block (PCB) Process State Transition Diagram 9/6/2013. Process Fundamentals
What Is A Process? A process is a program in execution. Process Fundamentals #include int main(int argc, char*argv[]) { int v; printf( hello world\n ); scanf( %d, &v); return 0; Program test
More informationProcesses. q Process concept q Process model and implementation q Multiprocessing once again q Next Time: Scheduling
Processes q Process concept q Process model and implementation q Multiprocessing once again q Next Time: Scheduling The process model Computers can do more than one thing at a time Hard to keep track of
More informationCS510 Operating System Foundations. Jonathan Walpole
CS510 Operating System Foundations Jonathan Walpole The Process Concept 2 The Process Concept Process a program in execution Program - description of how to perform an activity instructions and static
More informationRoadmap. Tevfik Ko!ar. CSC Operating Systems Fall Lecture - III Processes. Louisiana State University. Processes. September 1 st, 2009
CSC 4103 - Operating Systems Fall 2009 Lecture - III Processes Tevfik Ko!ar Louisiana State University September 1 st, 2009 1 Roadmap Processes Basic Concepts Process Creation Process Termination Context
More informationOperating Systems & Concurrency: Process Concepts
Operating Systems & Concurrency: Process Concepts Michael Brockway October 6, 2011 Outline Processes - context, data area, states Process creation, termination unix examples Processes and threads Processes
More informationToday: Process Management. The Big Picture So Far. What's in a Process? Example Process State in Memory
The Big Picture So Far Today: Process Management From the Architecture to the OS to the User: Architectural resources, OS management, and User Abstractions. A process as the unit of execution. Hardware
More informationSystems Programming/ C and UNIX
Systems Programming/ C and UNIX Alice E. Fischer Lecture 6: Processes October 9, 2017 Alice E. FischerLecture 6: Processes Lecture 5: Processes... 1/26 October 9, 2017 1 / 26 Outline 1 Processes 2 Process
More informationThe Big Picture So Far. Today: Process Management
The Big Picture So Far From the Architecture to the OS to the User: Architectural resources, OS management, and User Abstractions. Hardware abstraction Processor Memory I/O devices File System Distributed
More informationProcess. Operating Systems (Fall/Winter 2018) Yajin Zhou ( Zhejiang University
Operating Systems (Fall/Winter 2018) Process Yajin Zhou (http://yajin.org) Zhejiang University Acknowledgement: some pages are based on the slides from Zhi Wang(fsu). Review System calls implementation
More informationCSE 153 Design of Operating Systems Fall 2018
CSE 153 Design of Operating Systems Fall 2018 Lecture 4: Processes (2) Threads Process Creation: Unix In Unix, processes are created using fork() int fork() fork() Creates and initializes a new PCB Creates
More informationThreads and Too Much Milk! CS439: Principles of Computer Systems February 6, 2019
Threads and Too Much Milk! CS439: Principles of Computer Systems February 6, 2019 Bringing It Together OS has three hats: What are they? Processes help with one? two? three? of those hats OS protects itself
More informationECE 7650 Scalable and Secure Internet Services and Architecture ---- A Systems Perspective. Part I: Operating system overview: Processes and threads
ECE 7650 Scalable and Secure Internet Services and Architecture ---- A Systems Perspective Part I: Operating system overview: Processes and threads 1 Overview Process concept Process scheduling Thread
More informationChapter 3: Processes. Operating System Concepts Essentials 2 nd Edition
Chapter 3: Processes Silberschatz, Galvin and Gagne 2013 Chapter 3: Processes Process Concept Process Scheduling Operations on Processes Interprocess Communication Examples of IPC Systems Communication
More informationThreads. CS-3013 Operating Systems Hugh C. Lauer. CS-3013, C-Term 2012 Threads 1
Threads CS-3013 Operating Systems Hugh C. Lauer (Slides include materials from Slides include materials from Modern Operating Systems, 3 rd ed., by Andrew Tanenbaum and from Operating System Concepts,
More information