Process and Thread State Diagrams

Slides:



Advertisements
Similar presentations
Operating Systems COMP 4850/CISG 5550 Processes Introduction to Threads Dr. James Money.
Advertisements

Review: Chapters 1 – Chapter 1: OS is a layer between user and hardware to make life easier for user and use hardware efficiently Control program.
A. Frank - P. Weisberg Operating Systems Process Scheduling and Switching.
Slide 6-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 6 Implementing Processes, Threads, and Resources.
Structure of Processes
Page 1 Processes and Threads Chapter Processes 2.2 Threads 2.3 Interprocess communication 2.4 Classical IPC problems 2.5 Scheduling.
1/27/2010CSCI 315 Operating Systems Design1 Processes Notice: The slides for this lecture have been largely based on those accompanying an earlier version.
2: OS Structures 1 Jerry Breecher OPERATING SYSTEMS STRUCTURES.
Process Management. External View of the OS Hardware fork() CreateProcess() CreateThread() close() CloseHandle() sleep() semctl() signal() SetWaitableTimer()
1HW1 Explain the transition “interrupted” and “event wait.” Describe how they are different. NewReadyRunningTerminated Waiting (Blocked) admitted Dispatched.
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.
Process Processes are executing or executable instances of programs. Processes in a modern OS haveOS –management information –resources –unique process.
Chapter 6 Implementing Processes, Threads, and Resources.
Slide 6-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 6.
1 Threads Chapter 4 Reading: 4.1,4.4, Process Characteristics l Unit of resource ownership - process is allocated: n a virtual address space to.
Slide 6-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 6.
Processes and Threads CS550 Operating Systems. Processes and Threads These exist only at execution time They have fast state changes -> in memory and.
Linux Architecture Overview 1. Initialization Uboot – hardware init, loads kernel Kernel – remaining initialization, calls “init” Init – 1 st process,
Mid Term review CSC345.
LINUX System : Lecture 7 Bong-Soo Sohn Lecture notes acknowledgement : The design of UNIX Operating System.
OSes: 3. OS Structs 1 Operating Systems v Objectives –summarise OSes from several perspectives Certificate Program in Software Development CSE-TC and CSIM,
4P13 Week 3 Talking Points 1. Process State 2 Process Structure Catagories – Process identification: the PID and the parent PID – Signal state: signals.
Review for Quiz-2 Applied Operating System Concepts Chap.s 1,2,6,7 - ECE3055b, Spring 2005.
2 Processor(s)Main MemoryDevices Process, Thread & Resource Manager Memory Manager Device Manager File Manager.
What is a Process ? A program in execution.
Processes 2 Introduction to Operating Systems: Module 4.
CSCI/CMPE 4334 Operating Systems Review: Exam 1 1.
Chapter 2 Operating System Overview Dave Bremer Otago Polytechnic, N.Z. ©2008, Prentice Hall Operating Systems: Internals and Design Principles, 6/E William.
Processes and Threads Chapter 3 and 4 Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community College,
© D. J. Foreman, Structure of an O/S. © D. J. Foreman, Overview  Required functionality –Handle interrupts –Manage resources Processes.
Processes and threads.
Process Management Process Concept Why only the global variables?
Applied Operating System Concepts -
Chapter 5: Threads Overview Multithreading Models Threading Issues
Implementing Processes and Threads
Operating Systems: A Modern Perspective, Chapter 6
O/S State Diagrams © 2004, D. J. Foreman.
Process and Thread State Diagrams
Threads and Locks.
Process Virtualization. Process Process is a program that has initiated its execution. A program is a passive entity; whereas a process is an active entity.
Chapter 3: Windows7 Part 2.
System Structure B. Ramamurthy.
Module 2.2 COP4600 – Operating Systems Richard Newman
Process Models, Creation and Termination
Module 2.1 COP4600 – Operating Systems Richard Newman
Chapter 3: Windows7 Part 2.
Process & its States Lecture 5.
Mid Term review CSC345.
CGS 3763 Operating Systems Concepts Spring 2013
Process Description and Control
Threads Chapter 4.
Chapter 2 Processes and Threads 2.1 Processes 2.2 Threads
Process and Thread State Diagrams
Linux Architecture Overview.
Process Description and Control
Process Description and Control
LINUX System : Lecture 7 Lecture notes acknowledgement : The design of UNIX Operating System.
Implementing Processes and Threads
Implementing Processes, Threads, and Resources
Chapter 2 Processes and Threads 2.1 Processes 2.2 Threads
OPERATING SYSTEMS STRUCTURES
Device Mgmt © 2004, D. J. Foreman.
Process Description and Control
Process Description and Control in Unix
Outline Process Management Process manager Hardware process
Process Description and Control in Unix
Device Mgmt © 2004, D. J. Foreman.
Implementing Processes, Threads, and Resources
Chapter 3: Processes Process Concept Process Scheduling
Process and Thread State Diagrams
Presentation transcript:

Process and Thread State Diagrams © 2004, D. J. Foreman

Basic Transitions # ready queues may be >1 © 2004, D. J. Foreman

Java Thread States waiting Ready/Running new Terminated © 2004, D. J. Foreman

UNIX Process States C New D Pre-empted Ready in memory Ready Swapped A=system call or interrupt B=interrupt/return C=RAM available D=no RAM C New D Pre-empted Ready in memory swap in/out Ready Swapped int/sig A re-sched User Running Waiting in memory Kernel Running Waiting Swapped B Terminated Blocking I/O or Wait requested © 2004, D. J. Foreman

Windows Thread States Runnable Not runnable CPU scheduled New Ready Running preempted Block requested Block released Waiting Terminated Page/stack wait Not runnable © 2004, D. J. Foreman

Linux Process/Thread States New Ready Running Terminated H/W Any signal or event Uninterruptible Interruptible Signal Stopped* ULT=kernel-level process * Requires action from another process © 2004, D. J. Foreman

UNIX Kernel Monolithic Kernel Module (one block of code) contains: Process Management Memory Management File Management Device Mgmt Infrastructure © 2004, D. J. Foreman

Memory Mgmt Basic functions: MUCH more on this in another chapter Block allocation (user free storage) Isolation (storage key setting or equivalent) Virtualization of addresses MUCH more on this in another chapter © 2004, D. J. Foreman

File Mgmt Bound to physical device File "handles" Directory maintenance (as needed) Error handling Detection Recovery Movement of data to/from device © 2004, D. J. Foreman