Synchronization Memory Management

Slides:



Advertisements
Similar presentations
Part IV: Memory Management
Advertisements

Memory Management. Memory Manager Requirements –Minimize executable memory access time –Maximize executable memory size –Executable memory must be cost-effective.
Slide 11-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter Memory Management.
Chapter 8 Operating System Support
Memory Management 1 CS502 Spring 2006 Memory Management CS-502 Spring 2006.
CS-3013 & CS-502, Summer 2006 Memory Management1 CS-3013 & CS-502 Summer 2006.
©Brooks/Cole, 2003 Chapter 7 Operating Systems Dr. Barnawi.
MEMORY MANAGEMENT By KUNAL KADAKIA RISHIT SHAH. Memory Memory is a large array of words or bytes, each with its own address. It is a repository of quickly.
Silberschatz, Galvin and Gagne  Operating System Concepts Multistep Processing of a User Program User programs go through several steps before.
 2004 Deitel & Associates, Inc. All rights reserved. Chapter 9 – Real Memory Organization and Management Outline 9.1 Introduction 9.2Memory Organization.
Tutorial 7 Memory Management presented by: Antonio Maiorano Paul Di Marco.
Introduction to OS & Computer organization © Prof. Aiman Hanna Department of Computer Science Concordia University Montreal, Canada.
Computer Architecture and Operating Systems CS 3230: Operating System Section Lecture OS-7 Memory Management (1) Department of Computer Science and Software.
Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Chapter 8: Main Memory.
Swapping and Contiguous Memory Allocation. Multistep Processing of a User Program User programs go through several steps before being run. Program components.
Ch. 4 Memory Mangement Parkinson’s law: “Programs expand to fill the memory available to hold them.”
Chapter 7 Operating Systems. Define the purpose and functions of an operating system. Understand the components of an operating system. Understand the.
Memory Management Operating Systems CS550. Memory Manager Memory manager - manages allocation and de-allocation of main memory Plays significant impact.
Memory Management & Virtual Memory © Dr. Aiman Hanna Department of Computer Science Concordia University Montreal, Canada.
Introduction to OS & Computer organization © Dr. Aiman Hanna Department of Computer Science Concordia University Montreal, Canada.
Virtual Memory From course notes University of Waikato. Some material by Tony McGregor Other material from: The Architecture.
Slide 11-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 11.
Memory management The main purpose of a computer system is to execute programs. These programs, together with the data they access, must be in main memory.
Main Memory CSSE 332 Operating Systems Rose-Hulman Institute of Technology.
Memory Management By: Piyush Agarwal ( ) Akashdeep ( )
Memory Management.
Memory management.
High-level Synchronization
Chapter 8: Main Memory.
Memory Allocation The main memory must accommodate both:
Memory Management © 2004, D. J. Foreman.
Chapter 9 – Real Memory Organization and Management
Virtual Memory Networks and Communication Department.
CSI 400/500 Operating Systems Spring 2009
Comp 249 Programming Methodology
Chapter 8: Main Memory.
Basic Synchronization Principles
Device Management & Deadlock
Synchronization Memory Management
2P13 Week 2.
Memory Management & Virtual Memory
Memory Management Lectures notes from the text supplement by Siberschatz and Galvin Modified by B.Ramamurthy Chapter 8 11/24/2018.
Multistep Processing of a User Program
Operating Systems.
Computer Architecture
High-level Synchronization
Unit 6: Real Memory organization management
Memory Management Lectures notes from the text supplement by Siberschatz and Galvin Modified by B.Ramamurthy Chapter 9 12/1/2018.
Chapter3 Memory Management Techniques
Main Memory Background Swapping Contiguous Allocation Paging
Lecture 32 Syed Mansoor Sarwar
Basic Synchronization Principles
Lecture 3: Main Memory.
Operating System Chapter 7. Memory Management
Memory Management Lectures notes from the text supplement by Siberschatz and Galvin Modified by B.Ramamurthy Chapter 9 4/5/2019.
Copyright © Aiman Hanna All rights reserved
Basic Synchronization Principles (Continue)
Basic Synchronization Principles (Continue)
Copyright © Aiman Hanna All rights reserved
High-level Synchronization
Scheduling & File Management
Operating System Concepts
Operating System Concepts
High-level Synchronization (Continue)
Chapter 6 Dynamic Programming.
Device Management & Deadlock
Chapter 2 Reference Types.
Scheduling & File Management
Page Main Memory.
Presentation transcript:

Synchronization Memory Management Operating Systems Synchronization Memory Management 1) These notes are © Aiman Hanna. All copyrights reserved. For more information please e-mail to: Contact@AimanHanna.com. 2) These notes are also based on: Operating Systems, 3rd edition by Garry Nutts, published by Addison Wesley, ISBN-10: 0201773449 | ISBN-13: 9780201773446 . These notes still totally enforce all copyrights for Nutts/ Addison Wesley. For more information on these rights, please refer to the original publication of the book. 3) VERY IMPORTANT: These notes are neither complete nor sufficient to study for the course. They are merely given so that you can follow the covered subjects. You should NEVER depend solely on these notes for your study. Any use of these notes that results in violation of any of the copyrights indicated above is strictly prohibited. © Dr. Aiman Hanna Department of Computer Science Concordia University Montreal, Canada Data Communications & Computer Networking, by: Aiman Hanna

Synchronization Issues Solutions of synchronization problems should consider: Mutual Exclusion Good progress/no starvation Deadlock-free

The Two-task Solution Solutions to synchronization problems between two, and only two, processes Different solutions were discusses, which illustrated how solutions may, or may not achieve: Mutual Exclusion Good Progress/no starvation Deadlock-free

Memory Management Different kinds of memory have different speed, capacity and price Executables must be loaded in main for CPU to process them Hence, limitation of main memory represent a great concern

Address Binding Static address binding Utilize loader to bind addresses Serious problems with this approach

Address Space What is it? Relation between address space and main memory

Structure of Memory layout of Processes Different segments of a process What happens when the process require dynamic allocation of extra memory

Memory Allocation Fixed-partition memory allocation Internal fragmentation problem Variable-partition memory allocation External fragmentation problems

Compaction Compaction can be used to reduce external fragmentation, however What about address binding when compaction occurs The need of a better way to bind addresses

Dynamic Address Binding Dynamic address relocation through the use of the virtual addresses idea

Large Processes How large-size processes can run on small main memories Possible breakage of process into segments and the use of swapping

Where is this week coverage in the textbook? The two task solution is to be retrieved from the website Chapter 11: Section 11.1 to 11.4, with the following exceptions: Skip: Figures 11.7, 11.8, 11.9 & 11.10 (page 423 to 426) Note: Figure 11.16 (page 435) and its discussion will be covered in week 8