5.1_MainMemory Management.ppt - Chapter 8 Main Memory Operating System Concepts with Java \u2013 8th Edition 8.1 Silberschatz Galvin and Gagne \u00a92009

5.1_MainMemory Management.ppt - Chapter 8 Main Memory...

This preview shows page 1 - 9 out of 96 pages.

8.1Silberschatz, Galvin and Gagne ©2009Operating System Concepts with Java – 8thEditionChapter 8: Main Memory
Background image
8.2Silberschatz, Galvin and Gagne ©2009Operating System Concepts with Java – 8thEditionChapter 8: Main MemoryBackgroundSwapping Contiguous Memory AllocationPagingStructure of the Page TableSegmentationExample: The Intel Pentium
Background image
8.3Silberschatz, Galvin and Gagne ©2009Operating System Concepts with Java – 8thEditionObjectivesTo provide a detailed description of various ways of organizing memory hardwareTo discuss various memory-management techniques, including paging and segmentationTo provide a detailed description of the Intel Pentium, which supports both pure segmentation and segmentation with paging
Background image
8.4Silberschatz, Galvin and Gagne ©2009Operating System Concepts with Java – 8thEditionIn multiprogramming several processes are kept in memoryPaging/Segmentation are solution to memory managementMemory management depends upon Hardware designMemory consists of large array of words or bytes, each with its own address.Program CounterLoad and store to specific memoryInstruction execution cycleInstruction fetchDecodeOperation to be fetched from memoryResults are back to memoryBackground
Background image
8.5Silberschatz, Galvin and Gagne ©2009Operating System Concepts with Java – 8thEditionBackgroundProgram must be brought (from disk) into memory and placed within a process for it to be run.Main memory and registersare only storage CPU can access directly.Register access in one CPU clock(or less).Main memory can take many cycles. Processor waiting time is called as stall.Cachesits between main memory and CPU registers.Protectionof memory required to ensure correct operation.
Background image
8.6Silberschatz, Galvin and Gagne ©2009Operating System Concepts with Java – 8thEditionBackgroundMemory consists of a large array of words or bytes, each with its ownaddress. The CPU fetches instructions from memory according to the value of the program counter. These instructions may cause additional loading from and storing to specific memory addresses.Memory unit sees only a stream of memory addresses. It does not know how they are generated.Programmust be brought into memory and placed within a process for it to be run.Input queue– collection of processes on the diskthat are waitingto be broughtinto memory for execution.User programs go through several steps before being run.
Background image
8.7Silberschatz, Galvin and Gagne ©2009Operating System Concepts with Java – 8thEditionBase and Limit RegistersA pair of baseandlimitregisters define the logical address space
Background image
8.8Silberschatz, Galvin and Gagne ©2009Operating System Concepts with Java – 8thEditionEverymemory access made by a user process is checked against these two registers, and if a memory access is attempted outside the valid range, then a fatal error is generated.
Background image
Image of page 9

You've reached the end of your free preview.

Want to read all 96 pages?

  • Spring '19
  • Omprakash Patel
  • It, Virtual memory, Gagne, Galvin,  Register access

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture