1 / 24

COSC1078 Introduction to Information Technology Lecture 16 Processes

COSC1078 Introduction to Information Technology Lecture 16 Processes. James Harland james.harland@rmit.edu.au. Introduction. James Harland Email: james.harland@rmit.edu.au 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

judson
Download Presentation

COSC1078 Introduction to Information Technology Lecture 16 Processes

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Intro to IT COSC1078 Introduction to Information TechnologyLecture 16Processes James Harland james.harland@rmit.edu.au

  2. Intro to IT Introduction • James Harland • Email:james.harland@rmit.edu.au • 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?

  3. Intro to IT Introduction to IT 1 Introduction 2Images 3Audio 4Video WebLearnTest 1 5 Binary Representation Assignment 1 6 Data Storage 7Machine Processing 8 Operating Systems WebLearn Test 2 9 Processes Assignment 2 10 Internet 11Internet Security WebLearn Test 3 12Future of IT Assignment 3, Peer and Self Assessment

  4. Intro to IT Overview • Questions? • Assignment 2 • Assignment 3 • Processes • Questions?

  5. Processes Lecture 16: Processes Intro to IT

  6. Processes A program is astatic set of instructions A processes is the execution of a program, which changes state over time. Lecture 16: Processes Intro to IT

  7. Processes Executing in Context Processor Memory Disk ROM CC 00 Program Counter RAM CC Instruction Register Lecture 16: Processes Intro to IT

  8. Processes Executing in Context Processor Memory Disk ROM DD 00 Program Counter RAM CC DD Instruction Register Lecture 16: Processes Intro to IT

  9. Processes Switching Scheduler maintains process table Ready Ready Waiting Lecture 16: Processes Intro to IT

  10. Processes Switching Lecture 16: Processes Intro to IT

  11. 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 Lecture 16: Processes Intro to IT

  12. Processes Executing in Context Processor Memory Disk 00 BB ROM Program Counter RAM BB Instruction Register Lecture 16: Processes Intro to IT

  13. Processes Executing in Context Processor Memory Disk 00 11 ROM Program Counter RAM BB Instruction Register Lecture 16: Processes Intro to IT

  14. Processes Executing in Context Processor Memory Disk 00 FF ROM Program Counter RAM FF Instruction Register Lecture 16: Processes Intro to IT

  15. Processes Executing in Context Processor Memory Disk 00 BB ROM Program Counter RAM BB Instruction Register Lecture 16: Processes Intro to IT

  16. Processes Executing in Context Processor Memory Disk 00 BB ROM Program Counter RAM BB Instruction Register Lecture 16: Processes Intro to IT

  17. Processes Executing in Context Processor Memory Disk 00 FF ROM Program Counter RAM FF Instruction Register Lecture 16: Processes Intro to IT

  18. Processes Executing in Context Processor Memory Disk 00 BB ROM Program Counter RAM BB Instruction Register Lecture 16: Processes Intro to IT

  19. ``Thomas, you wouldn’t! Naughty!’’ Processor Memory Disk 00 BB ROM Program Counter RAM BB Instruction Register Lecture 16: Processes Intro to IT

  20. ``Thomas, you wouldn’t! Naughty!’’ Processor Memory Disk 00 BB ROM Program Counter RAM BB Instruction Register Lecture 16: Processes Intro to IT

  21. ``Thomas, you wouldn’t! Naughty!’’ Processor Memory Disk 00 BB ROM Program Counter RAM BB Instruction Register Lecture 16: Processes Intro to IT

  22. 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, … Lecture 16: Processes Intro to IT

  23. 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 Lecture 16: Processes Intro to IT

  24. Intro to IT Conclusion • Work on Assignment 2 (and 3?) • Web Quizzes and Web Test 2 • Finish reading book!

More Related