IS310 Hardware & Network Infrastructure Ronny L

Slides:



Advertisements
Similar presentations
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.
Advertisements

Chapter 6: Process Synchronization
A. Frank - P. Weisberg Operating Systems Process Scheduling and Switching.
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.
1/23/2008CSCI 315 Operating Systems Design1 Processes Notice: The slides for this lecture have been largely based on those accompanying the textbook Operating.
Operating system Part three Introduction to computer, 2nd semester, 2010/2011 Mr.Nael Aburas Faculty of Information.
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.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3: Operating Systems Computer Science: An Overview Tenth Edition.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3: Operating Systems Computer Science: An Overview Tenth Edition.
Introduction to Operating Systems
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3: Operating Systems Computer Science: An Overview Eleventh Edition.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3: Operating Systems Computer Science: An Overview Tenth Edition.
Lecture 3 Process Concepts. What is a Process? A process is the dynamic execution context of an executing program. Several processes may run concurrently,
Computers Operating System Essentials. Operating Systems PROGRAM HARDWARE OPERATING SYSTEM.
Multiprogramming. Readings r Silberschatz, Galvin, Gagne, “Operating System Concepts”, 8 th edition: Chapter 3.1, 3.2.
Computer Studies (AL) Operating System Process Management - Process.
Chapter 3 Operating Systems © 2007 Pearson Addison-Wesley. All rights reserved.
Operating Systems © 2007 Pearson Addison-Wesley. All rights reserved.
Chapter 3: Operating Systems
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 3: Process-Concept.
Chapter 3 Operating Systems. © 2005 Pearson Addison-Wesley. All rights reserved 3-2 Chapter 3 Operating Systems 3.1 The Evolution of Operating Systems.
Interrupts and Exception Handling. Execution We are quite aware of the Fetch, Execute process of the control unit of the CPU –Fetch and instruction as.
Process Control Management Prepared by: Dhason Operating Systems.
CT101: Computing Systems Introduction to Operating Systems.
Process Synchronization. Concurrency Definition: Two or more processes execute concurrently when they execute different activities on different devices.
1 Răzvan Zota Operating systems - Processes.
Multiprogramming. Readings r Chapter 2.1 of the textbook.
Introduction to Operating Systems
Chapter 3: Operating Systems
Process Management Process Concept Why only the global variables?
Operating Systems (CS 340 D)
Sujata Ray Dey Maheshtala College Computer Science Department
Operating systems - Processes
OPERATING SYSTEMS CS3502 Fall 2017
Lecture Topics: 11/1 Processes Process Management
An Introduction to Operating Systems
Chapter 3: Processes.
Intro to Processes CSSE 332 Operating Systems
Operating Systems (CS 340 D)
Chapter 3: Processes.
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.
Operating Systems CPU Scheduling.
Operating Systems.
Operating systems - Processes
Process & its States Lecture 5.
Operating Systems.
Process Description and Control
Process Description and Control
Lecture 2 Part 2 Process Synchronization
Sujata Ray Dey Maheshtala College Computer Science Department
Chapter 3 Operating Systems
Concurrency: Mutual Exclusion and Process Synchronization
Chapter 3: Operating Systems
Coordinating the Machine’s Activities
Chapter 3: Operating Systems
CS149D Elements of Computer Science
Introduction to Operating Systems
- When you approach operating system concepts there might be several confusing terms that may look similar but in fact refer to different concepts:  multiprogramming, multiprocessing, multitasking,
Chapter 3: Operating Systems
Chapter 3: Operating Systems Computer Science: An Overview
Chapter 3: Operating Systems
Chapter 6: Synchronization Tools
Process.
Chapter 3: Operating Systems
CSE 153 Design of Operating Systems Winter 2019
Chapter 3: Processes Process Concept Process Scheduling
Chapter 3: Process Management
Necessary Background for OS
Presentation transcript:

IS310 Hardware & Network Infrastructure Ronny L IS310 Hardware & Network Infrastructure Ronny L. Bull, MS Lecturer Computer Science Department

Today's Lecture Topics Processes Resource Sharing Deadlock Dining Philosophers OS Security

Processes Process: the activity of executing a program Process State: Current status of the activity Program counter General purpose registers Related portion of main memory Ready: a process is ready if it is within a state in which it can continue Waiting: a process is waiting if the process is delayed until some event occurs Resource allocation

Process Administration Scheduler: adds new processes to the process table removes completed processes from the process table. Process Table: an area in main memory maintained by the process scheduler. Dispatcher: controls the allocation of time slices to the processes in the process table The end of a time slice is signaled by an interrupt

Process Time Sharing Multiprogramming: dividing processor time into short segments (Time Slices) measured in either milliseconds or microseconds Context Switching: the procedure of changing from one process to another

Interrupts Interrupt: a signal that “interrupts” the CPU from its current task CPU completes its current machine cycle Process state is recorded Starts interrupt handler Interrupt handler: Located in a predetermined location in main memory Describes how dispatcher should respond to the interrupt signal

Process Time Sharing

Handling Competition for Resources

Handling Competition for Resources Semaphore: a “control flag” Critical Region: a group of instructions that should be executed by only one process at a time Bank account example Mutual exclusion: Requirement for proper implementation of a critical region Mutex

Deadlock

Deadlock Processes block each other from continuing Conditions required for deadlock (all three must be satisfied) Competition for non-sharable resources Resource requested on a partial basis An allocated resource can not be forcibly retrieved

Security What kind of concerns should we have when it comes to operating system security? What are some ways that can be used to tighten up security on within an operating system What are privilege levels? Privileged instructions?