1 / 14

Resource Management

Resource Management. System Resources. What resources are managed in a computer system?. What resources are managed in a computer system?. Primary memory (RAM) Secondary storage (hard drive/disk storage) Central Processing Unit (CPU) Graphical Processing Unit (GPU)

johnda
Télécharger la présentation

Resource Management

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. Resource Management System Resources

  2. What resources are managed in a computer system?

  3. What resources are managed in a computer system? • Primary memory (RAM) • Secondary storage (hard drive/disk storage) • Central Processing Unit (CPU) • Graphical Processing Unit (GPU) • Network bandwidth/connectivity • Screen resolution • Sound processor

  4. How do resources differ on different systems?

  5. How do resources differ on different systems? • Cost vs. Performance • No need to spend money on extra hardware if it is not needed • Examples: • Screens for mainframes and servers • Hard drives for cell phones • GPU for an e-book

  6. What problems could occur from limited resources?

  7. What problems could occur from limited resources? • Limited memory  use of secondary storage as memory • Secondary storage is slower  time lost • Limited CPU  programs run slower or system stalls • Limited GPU  choppy, undetailed graphics • Limited network connectivity  constant buffering and delays

  8. Operating System Roles • Hardware management • Communicating with all hardware • Resource monitoring • processor time, memory usage, etc. • Coordinating concurrent processing • multiple programs (processes) running at the same time • Memory management • each program has their own space in memory • **Operating system hides the complex activities above from the user!**

  9. Multi-processing/Multi-tasking • Memory allocation • Load program from hard drive into a section of memory (RAM) • Time-slicing (sharing CPU time across programs) • Giving a particular program a “slice” of time to run • Priority • A program can be given “priority” if it’s more important • e.g. window in focus, streaming services

  10. Virtual Memory • What happens when you run too many programs and all of the memory is used up? What other storage is there? • How do we keep some memory free at all times?

  11. Virtual Memory Terms • Paging / Swapping • Moving program data between memory and disk • Where do you see this stuff? • pagefile.sys in windows • /swap space in linux • Whenever you use up all your RAM and your hard drive goes crazy. • Optimizations • Whole programs do not have to fit in memory contiguously (all in one section) • Prevents memory segmentation • Pre-emptive paging

  12. Discussion: Why are there different operating systems? • Mac OS X vs. iOS • Ubuntu Linux vs. Android • Advantages? (Hint: think in terms of design)

  13. How does the OS represent hardware devices? • Hardware complexities are hidden from the user by the OS • Hardware is simplified and represented virtually by the OS • Examples • Mouse pointer • File tree and drive letters • Others?

  14. OS  Hardware Communication • How does the OS know “when” to communicate with hardware? • Interrupt vs. Polling • What do you think they mean?

More Related