Lecture 16: Processes Intro to IT COSC1078 Introduction to Information Technology Lecture 16...
-
Upload
maxim-cureton -
Category
Documents
-
view
217 -
download
0
Transcript of Lecture 16: Processes Intro to IT COSC1078 Introduction to Information Technology Lecture 16...
![Page 1: Lecture 16: Processes Intro to IT COSC1078 Introduction to Information Technology Lecture 16 Processes James Harland james.harland@rmit.edu.au.](https://reader035.fdocuments.net/reader035/viewer/2022062515/56649c735503460f949260b0/html5/thumbnails/1.jpg)
Lecture 16: Processes Intro to IT
COSC1078 Introduction to Information Technology
Lecture 16
ProcessesJames Harland
![Page 2: Lecture 16: Processes Intro to IT COSC1078 Introduction to Information Technology Lecture 16 Processes James Harland james.harland@rmit.edu.au.](https://reader035.fdocuments.net/reader035/viewer/2022062515/56649c735503460f949260b0/html5/thumbnails/2.jpg)
Lecture 15: Booting Intro to IT
Introduction
James Harland• Email: [email protected]• URL: www.cs.rmit.edu.au/~jah• Phone: 9925 2045• Office: 14.10.1 • Consultation: Mon 4.30-5.30, • Thu 11.30-12.30
What colour is my office door? Carpet? Chair?
![Page 3: Lecture 16: Processes Intro to IT COSC1078 Introduction to Information Technology Lecture 16 Processes James Harland james.harland@rmit.edu.au.](https://reader035.fdocuments.net/reader035/viewer/2022062515/56649c735503460f949260b0/html5/thumbnails/3.jpg)
Lecture 16: Processes Intro to IT
Introduction to IT
1 Introduction
2 Images
3 Audio
4 Video WebLearnTest 1
5 Binary Representation Assignment 1
6 Data Storage
7 Machine Processing
8 Operating Systems WebLearn Test 2
9 Processes Assignment 2
10 Internet
11 Internet Security WebLearn Test 3
12 Future of IT Assignment 3, Peer and Self Assessment
![Page 4: Lecture 16: Processes Intro to IT COSC1078 Introduction to Information Technology Lecture 16 Processes James Harland james.harland@rmit.edu.au.](https://reader035.fdocuments.net/reader035/viewer/2022062515/56649c735503460f949260b0/html5/thumbnails/4.jpg)
Lecture 16: Processes Intro to IT
Overview
Questions?
Assignment 2
Assignment 3
Processes
Questions?
![Page 5: Lecture 16: Processes Intro to IT COSC1078 Introduction to Information Technology Lecture 16 Processes James Harland james.harland@rmit.edu.au.](https://reader035.fdocuments.net/reader035/viewer/2022062515/56649c735503460f949260b0/html5/thumbnails/5.jpg)
Lecture 16: Processes Intro to IT
Processes
![Page 6: Lecture 16: Processes Intro to IT COSC1078 Introduction to Information Technology Lecture 16 Processes James Harland james.harland@rmit.edu.au.](https://reader035.fdocuments.net/reader035/viewer/2022062515/56649c735503460f949260b0/html5/thumbnails/6.jpg)
Lecture 16: Processes Intro to IT
Processes
A program is a static set of instructions
A processes is the execution of a program, which changes state over time.
![Page 7: Lecture 16: Processes Intro to IT COSC1078 Introduction to Information Technology Lecture 16 Processes James Harland james.harland@rmit.edu.au.](https://reader035.fdocuments.net/reader035/viewer/2022062515/56649c735503460f949260b0/html5/thumbnails/7.jpg)
Lecture 16: Processes Intro to IT
Processes Executing in Context
Program Counter
InstructionRegister
CC ROM
RAM
Processor Memory Disk
00
CC
![Page 8: Lecture 16: Processes Intro to IT COSC1078 Introduction to Information Technology Lecture 16 Processes James Harland james.harland@rmit.edu.au.](https://reader035.fdocuments.net/reader035/viewer/2022062515/56649c735503460f949260b0/html5/thumbnails/8.jpg)
Lecture 16: Processes Intro to IT
Processes Executing in Context
Program Counter
InstructionRegister
DD ROM
RAM
Processor Memory Disk
00
CC
DD
![Page 9: Lecture 16: Processes Intro to IT COSC1078 Introduction to Information Technology Lecture 16 Processes James Harland james.harland@rmit.edu.au.](https://reader035.fdocuments.net/reader035/viewer/2022062515/56649c735503460f949260b0/html5/thumbnails/9.jpg)
Lecture 16: Processes Intro to IT
Processes Switching
Ready
Ready
Waiting
Scheduler maintains process table
![Page 10: Lecture 16: Processes Intro to IT COSC1078 Introduction to Information Technology Lecture 16 Processes James Harland james.harland@rmit.edu.au.](https://reader035.fdocuments.net/reader035/viewer/2022062515/56649c735503460f949260b0/html5/thumbnails/10.jpg)
Lecture 16: Processes Intro to IT
Processes Switching
![Page 11: Lecture 16: Processes Intro to IT COSC1078 Introduction to Information Technology Lecture 16 Processes James Harland james.harland@rmit.edu.au.](https://reader035.fdocuments.net/reader035/viewer/2022062515/56649c735503460f949260b0/html5/thumbnails/11.jpg)
Lecture 16: Processes Intro to IT
Interrupts
Signals to the CPU Often generated by timing circuits CPU reacts by jumping to appropriate memory location
Dispatcher selects a ready process resets timing circuit starts process
CPUs often designed to switch process states efficiently
![Page 12: Lecture 16: Processes Intro to IT COSC1078 Introduction to Information Technology Lecture 16 Processes James Harland james.harland@rmit.edu.au.](https://reader035.fdocuments.net/reader035/viewer/2022062515/56649c735503460f949260b0/html5/thumbnails/12.jpg)
Lecture 16: Processes Intro to IT
Processes Executing in Context
Program Counter
InstructionRegister
BB ROM
RAM
Processor Memory Disk
00
BB
![Page 13: Lecture 16: Processes Intro to IT COSC1078 Introduction to Information Technology Lecture 16 Processes James Harland james.harland@rmit.edu.au.](https://reader035.fdocuments.net/reader035/viewer/2022062515/56649c735503460f949260b0/html5/thumbnails/13.jpg)
Lecture 16: Processes Intro to IT
Processes Executing in Context
Program Counter
InstructionRegister
11 ROM
RAM
Processor Memory Disk
00
BB
![Page 14: Lecture 16: Processes Intro to IT COSC1078 Introduction to Information Technology Lecture 16 Processes James Harland james.harland@rmit.edu.au.](https://reader035.fdocuments.net/reader035/viewer/2022062515/56649c735503460f949260b0/html5/thumbnails/14.jpg)
Lecture 16: Processes Intro to IT
Processes Executing in Context
Program Counter
InstructionRegister
FF ROM
RAM
Processor Memory Disk
00
FF
![Page 15: Lecture 16: Processes Intro to IT COSC1078 Introduction to Information Technology Lecture 16 Processes James Harland james.harland@rmit.edu.au.](https://reader035.fdocuments.net/reader035/viewer/2022062515/56649c735503460f949260b0/html5/thumbnails/15.jpg)
Lecture 16: Processes Intro to IT
Processes Executing in Context
Program Counter
InstructionRegister
BB ROM
RAM
Processor Memory Disk
00
BB
![Page 16: Lecture 16: Processes Intro to IT COSC1078 Introduction to Information Technology Lecture 16 Processes James Harland james.harland@rmit.edu.au.](https://reader035.fdocuments.net/reader035/viewer/2022062515/56649c735503460f949260b0/html5/thumbnails/16.jpg)
Lecture 16: Processes Intro to IT
Processes Executing in Context
Program Counter
InstructionRegister
BB ROM
RAM
Processor Memory Disk
00
BB
![Page 17: Lecture 16: Processes Intro to IT COSC1078 Introduction to Information Technology Lecture 16 Processes James Harland james.harland@rmit.edu.au.](https://reader035.fdocuments.net/reader035/viewer/2022062515/56649c735503460f949260b0/html5/thumbnails/17.jpg)
Lecture 16: Processes Intro to IT
Processes Executing in Context
Program Counter
InstructionRegister
FF ROM
RAM
Processor Memory Disk
00
FF
![Page 18: Lecture 16: Processes Intro to IT COSC1078 Introduction to Information Technology Lecture 16 Processes James Harland james.harland@rmit.edu.au.](https://reader035.fdocuments.net/reader035/viewer/2022062515/56649c735503460f949260b0/html5/thumbnails/18.jpg)
Lecture 16: Processes Intro to IT
Processes Executing in Context
Program Counter
InstructionRegister
BB ROM
RAM
Processor Memory Disk
00
BB
![Page 19: Lecture 16: Processes Intro to IT COSC1078 Introduction to Information Technology Lecture 16 Processes James Harland james.harland@rmit.edu.au.](https://reader035.fdocuments.net/reader035/viewer/2022062515/56649c735503460f949260b0/html5/thumbnails/19.jpg)
Lecture 16: Processes Intro to IT
``Thomas, you wouldn’t! Naughty!’’
Program Counter
InstructionRegister
BB ROM
RAM
Processor Memory Disk
00
BB
![Page 20: Lecture 16: Processes Intro to IT COSC1078 Introduction to Information Technology Lecture 16 Processes James Harland james.harland@rmit.edu.au.](https://reader035.fdocuments.net/reader035/viewer/2022062515/56649c735503460f949260b0/html5/thumbnails/20.jpg)
Lecture 16: Processes Intro to IT
``Thomas, you wouldn’t! Naughty!’’
Program Counter
InstructionRegister
BB ROM
RAM
Processor Memory Disk
00
BB
![Page 21: Lecture 16: Processes Intro to IT COSC1078 Introduction to Information Technology Lecture 16 Processes James Harland james.harland@rmit.edu.au.](https://reader035.fdocuments.net/reader035/viewer/2022062515/56649c735503460f949260b0/html5/thumbnails/21.jpg)
Lecture 16: Processes Intro to IT
``Thomas, you wouldn’t! Naughty!’’
Program Counter
InstructionRegister
BB ROM
RAM
Processor Memory Disk
00
BB
![Page 22: Lecture 16: Processes Intro to IT COSC1078 Introduction to Information Technology Lecture 16 Processes James Harland james.harland@rmit.edu.au.](https://reader035.fdocuments.net/reader035/viewer/2022062515/56649c735503460f949260b0/html5/thumbnails/22.jpg)
Lecture 16: Processes Intro to IT
Software
`Programs should be able to do anything!’ (???)
Programs should be able to do anything reasonable
What is reasonable?
Not changing OS, not deleting other processes from memory, not playing with other people’s things, …
![Page 23: Lecture 16: Processes Intro to IT COSC1078 Introduction to Information Technology Lecture 16 Processes James Harland james.harland@rmit.edu.au.](https://reader035.fdocuments.net/reader035/viewer/2022062515/56649c735503460f949260b0/html5/thumbnails/23.jpg)
Lecture 16: Processes Intro to IT
Interrupts
Provide mechanism to switch processes
CPU doesn’t have to wait for I/O transfers
Switching leads to faster throughput
`Save document’ means CPU does something else while the save takes place
![Page 24: Lecture 16: Processes Intro to IT COSC1078 Introduction to Information Technology Lecture 16 Processes James Harland james.harland@rmit.edu.au.](https://reader035.fdocuments.net/reader035/viewer/2022062515/56649c735503460f949260b0/html5/thumbnails/24.jpg)
Lecture 16: Processes Intro to IT
Conclusion
Work on Assignment 2 (and 3?)
Web Quizzes and Web Test 2
Finish reading book!