SlideShare a Scribd company logo
1 of 49
Chapter 2 Memory Management:   Early Systems Understanding Operating Systems, Fourth Edition
Objectives ,[object Object],[object Object],[object Object],[object Object],[object Object],Understanding Operating Systems, Fourth Edition
Objectives (continued) ,[object Object],[object Object],[object Object],Understanding Operating Systems, Fourth Edition
Memory Management:   Early Systems Understanding Operating Systems, Fourth Edition “ Memory is the primary and fundamental power, without which there   could be no other intellectual operation.”  —Samuel Johnson (1709–1784)
Memory Management:   Early Systems ,[object Object],[object Object],[object Object],[object Object],[object Object],Understanding Operating Systems, Fourth Edition
Single-User Contiguous Scheme ,[object Object],[object Object],[object Object],[object Object],[object Object],Understanding Operating Systems, Fourth Edition
Single-User Contiguous Scheme  (continued) ,[object Object],[object Object],[object Object],Understanding Operating Systems, Fourth Edition
Fixed Partitions ,[object Object],[object Object],[object Object],[object Object],[object Object],Understanding Operating Systems, Fourth Edition
Fixed Partitions  (continued) Understanding Operating Systems, Fourth Edition Table 2.1: A  simplified fixed   partition   memory table   with the    free partition   shaded To allocate memory spaces to jobs, the operating system’s   Memory Manager must keep a table  as shown below:
Fixed Partitions  (continued) Understanding Operating Systems, Fourth Edition Figure 2.1:  Main memory use during   fixed partition allocation     of Table 2.1 NOTE:   Job 3 must wait even though 70K of free space is available in Partition 1 where Job 1 occupies only 30K of the 100K available
Fixed Partitions  (continued) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Understanding Operating Systems, Fourth Edition
Dynamic Partitions ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Understanding Operating Systems, Fourth Edition
Dynamic Partitions  (continued) Understanding Operating Systems, Fourth Edition Figure 2.2: Main memory use during dynamic partition allocation
Dynamic Partitions  (continued) Understanding Operating Systems, Fourth Edition Figure 2.2 (continued): Main memory use during dynamic partition allocation
Best-Fit Versus First-Fit Allocation ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Understanding Operating Systems, Fourth Edition
Best-Fit Versus First-Fit Allocation  (continued) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Understanding Operating Systems, Fourth Edition
Best-Fit Versus First-Fit Allocation  (continued) Understanding Operating Systems, Fourth Edition Figure 2.3: An example of a first-fit free scheme
Best-Fit Versus First-Fit Allocation  (continued) Understanding Operating Systems, Fourth Edition Figure 2.4: An example of a best-fit free scheme
Best-Fit Versus First-Fit Allocation  (continued) ,[object Object],[object Object],[object Object],[object Object],[object Object],Understanding Operating Systems, Fourth Edition
Best-Fit Versus First-Fit Allocation  (continued) ,[object Object],[object Object],[object Object],Understanding Operating Systems, Fourth Edition
Best-Fit Versus First-Fit Allocation  (continued) Understanding Operating Systems, Fourth Edition Table 2.2: Status  of each memory block   before and after a     request is made  for a block of 200 spaces  using     the first-fit algorithm
Best-Fit Versus First-Fit Allocation  (continued) ,[object Object],[object Object],[object Object],Understanding Operating Systems, Fourth Edition
Best-Fit Versus First-Fit Allocation  (continued) Understanding Operating Systems, Fourth Edition Table 2.3: Status  of each memory block   before and after a     request is made  for a memory block of 200 spaces    using   the  best -fit algorithm
Best-Fit Versus First-Fit Allocation  (continued) ,[object Object],[object Object],[object Object],[object Object],[object Object],Understanding Operating Systems, Fourth Edition
Deallocation ,[object Object],[object Object],[object Object],[object Object],[object Object],Understanding Operating Systems, Fourth Edition
Deallocation  (continued) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Understanding Operating Systems, Fourth Edition
Deallocation :  Dynamic Partition System ,[object Object],[object Object],[object Object],[object Object],[object Object],Understanding Operating Systems, Fourth Edition
Case 1: Joining Two Free Blocks Understanding Operating Systems, Fourth Edition Table 2.4:  Original free   list before deallocation   for Case 1
Case 1: Joining Two Free Blocks  (continued) Understanding Operating Systems, Fourth Edition Table 2.5:  Free   list  after  deallocation   for Case 1
Deallocation:  Dynamic Partition System (continued) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Understanding Operating Systems, Fourth Edition
Case 2: Joining Three Free Blocks Understanding Operating Systems, Fourth Edition Table 2.6:  Original free   list before deallocation   for Case  2
Case 2: Joining Three Free Blocks  (continued) Understanding Operating Systems, Fourth Edition Table 2.7:  Free   list  after job has released memory
Deallocation:  Dynamic Partition System (continued) ,[object Object],[object Object],[object Object],[object Object],Understanding Operating Systems, Fourth Edition
Case 3: Deallocating an Isolated Block Understanding Operating Systems, Fourth Edition Table 2.8:  Original free   list before deallocation   for Case  3
Case 3: Deallocating an Isolated Block  (continued) Understanding Operating Systems, Fourth Edition Table 2.9:  The   job to be deallocated is   of size 445 and begins at   location 8805. The asterisk   indicates the soon-to - be-free memory block. Table 2.9:  Memory list   before deallocation
Case 3: Deallocating an Isolated Block  (continued) Understanding Operating Systems, Fourth Edition Table 2.10: Busy  list after the job has released   its memory.    The   asterisk indicates the new   null entry in the    busy list.
Case 3: Deallocating an Isolated Block  (continued) Understanding Operating Systems, Fourth Edition Table 2.11: Free  list after the job has released   its memory.    The   asterisk indicates the new  free block  entry    replacing the null entry
Relocatable Dynamic Partitions ,[object Object],[object Object],[object Object],Understanding Operating Systems, Fourth Edition
Relocatable Dynamic Partitions (continued) ,[object Object],[object Object],[object Object],[object Object],[object Object],Understanding Operating Systems, Fourth Edition
Relocatable Dynamic Partitions (continued) Understanding Operating Systems, Fourth Edition Figure 2.5: An assembly language program that performs    a simple incremental operation
Relocatable Dynamic Partitions (continued) Understanding Operating Systems, Fourth Edition Figure 2.6:  The original assembly   language program    after it   has been processed by   the   assembler
Relocatable Dynamic Partitions (continued) ,[object Object],[object Object],[object Object],[object Object],Understanding Operating Systems, Fourth Edition
Relocatable Dynamic Partitions (continued) ,[object Object],[object Object],[object Object],[object Object],Understanding Operating Systems, Fourth Edition
Relocatable Dynamic Partitions (continued) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Understanding Operating Systems, Fourth Edition
Relocatable Dynamic Partitions (continued) Understanding Operating Systems, Fourth Edition Figure 2.7:  Three snapshots of memory before and after    compaction
Relocatable Dynamic Partitions (continued) Understanding Operating Systems, Fourth Edition Figure 2.8:  Contents of relocation register and close-up of   Job 4 memory area (a) before relocation and    (b) after   relocation and compaction
Relocatable Dynamic Partitions (continued) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Understanding Operating Systems, Fourth Edition
Summary ,[object Object],[object Object],[object Object],[object Object],Understanding Operating Systems, Fourth Edition
Summary (continued) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Understanding Operating Systems, Fourth Edition

More Related Content

What's hot

Operating System-Ch8 memory management
Operating System-Ch8 memory managementOperating System-Ch8 memory management
Operating System-Ch8 memory managementSyaiful Ahdan
 
Distributed file system
Distributed file systemDistributed file system
Distributed file systemAnamika Singh
 
Distributed operating system(os)
Distributed operating system(os)Distributed operating system(os)
Distributed operating system(os)Dinesh Modak
 
Memory management ppt
Memory management pptMemory management ppt
Memory management pptManishaJha43
 
Operating system memory management
Operating system memory managementOperating system memory management
Operating system memory managementrprajat007
 
Ch02 early system memory management
Ch02 early system  memory managementCh02 early system  memory management
Ch02 early system memory managementJacob Cadeliña
 
Free Space Management, Efficiency & Performance, Recovery and NFS
Free Space Management, Efficiency & Performance, Recovery and NFSFree Space Management, Efficiency & Performance, Recovery and NFS
Free Space Management, Efficiency & Performance, Recovery and NFSUnited International University
 
Memory management
Memory managementMemory management
Memory managementcpjcollege
 
Operating System-Memory Management
Operating System-Memory ManagementOperating System-Memory Management
Operating System-Memory ManagementAkmal Cikmat
 
Computer architecture memory system
Computer architecture memory systemComputer architecture memory system
Computer architecture memory systemMazin Alwaaly
 
Query processing and optimization (updated)
Query processing and optimization (updated)Query processing and optimization (updated)
Query processing and optimization (updated)Ravinder Kamboj
 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OSvampugani
 
Virtual memory
Virtual memoryVirtual memory
Virtual memoryAnuj Modi
 
Distributed Operating Systems
Distributed Operating SystemsDistributed Operating Systems
Distributed Operating SystemsUmmiya Mohammedi
 

What's hot (20)

Operating System-Ch8 memory management
Operating System-Ch8 memory managementOperating System-Ch8 memory management
Operating System-Ch8 memory management
 
Distributed file system
Distributed file systemDistributed file system
Distributed file system
 
Distributed operating system(os)
Distributed operating system(os)Distributed operating system(os)
Distributed operating system(os)
 
Memory management ppt
Memory management pptMemory management ppt
Memory management ppt
 
Operating system memory management
Operating system memory managementOperating system memory management
Operating system memory management
 
Ch02 early system memory management
Ch02 early system  memory managementCh02 early system  memory management
Ch02 early system memory management
 
Free Space Management, Efficiency & Performance, Recovery and NFS
Free Space Management, Efficiency & Performance, Recovery and NFSFree Space Management, Efficiency & Performance, Recovery and NFS
Free Space Management, Efficiency & Performance, Recovery and NFS
 
Memory management
Memory managementMemory management
Memory management
 
Operating System-Memory Management
Operating System-Memory ManagementOperating System-Memory Management
Operating System-Memory Management
 
Computer architecture memory system
Computer architecture memory systemComputer architecture memory system
Computer architecture memory system
 
File system structure
File system structureFile system structure
File system structure
 
Query processing and optimization (updated)
Query processing and optimization (updated)Query processing and optimization (updated)
Query processing and optimization (updated)
 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OS
 
Disk management
Disk managementDisk management
Disk management
 
SCHEDULING ALGORITHMS
SCHEDULING ALGORITHMSSCHEDULING ALGORITHMS
SCHEDULING ALGORITHMS
 
Virtual memory
Virtual memoryVirtual memory
Virtual memory
 
Complete Operating System notes
Complete Operating System notesComplete Operating System notes
Complete Operating System notes
 
Kernels and its types
Kernels and its typesKernels and its types
Kernels and its types
 
I/O Management
I/O ManagementI/O Management
I/O Management
 
Distributed Operating Systems
Distributed Operating SystemsDistributed Operating Systems
Distributed Operating Systems
 

Viewers also liked

Memory Management
Memory ManagementMemory Management
Memory ManagementVisakh V
 
Understanding operating systems 5th ed ch01
Understanding operating systems 5th ed ch01Understanding operating systems 5th ed ch01
Understanding operating systems 5th ed ch01BarrBoy
 
Operating Systems - Processor Management
Operating Systems - Processor ManagementOperating Systems - Processor Management
Operating Systems - Processor ManagementDamian T. Gordon
 
8 memory management strategies
8 memory management strategies8 memory management strategies
8 memory management strategiesDr. Loganathan R
 
Pearl Car Care - Advanced Technology Waterless Cleaning & Detailing System
Pearl Car Care - Advanced Technology Waterless Cleaning & Detailing SystemPearl Car Care - Advanced Technology Waterless Cleaning & Detailing System
Pearl Car Care - Advanced Technology Waterless Cleaning & Detailing SystemPearl Nano Promotions
 
A study of the worst case ratio of a simple algorithm for simple assembly lin...
A study of the worst case ratio of a simple algorithm for simple assembly lin...A study of the worst case ratio of a simple algorithm for simple assembly lin...
A study of the worst case ratio of a simple algorithm for simple assembly lin...narmo
 
PC Troubleshooting - Module 1
PC Troubleshooting - Module 1PC Troubleshooting - Module 1
PC Troubleshooting - Module 1spseale
 
Introduction to Memory
Introduction to MemoryIntroduction to Memory
Introduction to MemoryJames Atherton
 
Continguous Memory Allocator in the Linux Kernel
Continguous Memory Allocator in the Linux KernelContinguous Memory Allocator in the Linux Kernel
Continguous Memory Allocator in the Linux KernelKernel TLV
 
34 single partition allocation
34 single partition allocation34 single partition allocation
34 single partition allocationmyrajendra
 
35. multiplepartitionallocation
35. multiplepartitionallocation35. multiplepartitionallocation
35. multiplepartitionallocationmyrajendra
 

Viewers also liked (20)

Memory Management
Memory ManagementMemory Management
Memory Management
 
Memory management
Memory managementMemory management
Memory management
 
Memory management
Memory managementMemory management
Memory management
 
Understanding operating systems 5th ed ch01
Understanding operating systems 5th ed ch01Understanding operating systems 5th ed ch01
Understanding operating systems 5th ed ch01
 
Operating Systems - Processor Management
Operating Systems - Processor ManagementOperating Systems - Processor Management
Operating Systems - Processor Management
 
8 memory management strategies
8 memory management strategies8 memory management strategies
8 memory management strategies
 
Memory management1
Memory management1Memory management1
Memory management1
 
Memory
MemoryMemory
Memory
 
como aumentar la capacidad de un disco
como aumentar la capacidad de un discocomo aumentar la capacidad de un disco
como aumentar la capacidad de un disco
 
Advanced system care
Advanced system careAdvanced system care
Advanced system care
 
Instalacion limpia de_windows_xp_villares_y_conde
Instalacion limpia de_windows_xp_villares_y_condeInstalacion limpia de_windows_xp_villares_y_conde
Instalacion limpia de_windows_xp_villares_y_conde
 
Pearl Car Care - Advanced Technology Waterless Cleaning & Detailing System
Pearl Car Care - Advanced Technology Waterless Cleaning & Detailing SystemPearl Car Care - Advanced Technology Waterless Cleaning & Detailing System
Pearl Car Care - Advanced Technology Waterless Cleaning & Detailing System
 
EASEUS partition
EASEUS partitionEASEUS partition
EASEUS partition
 
A study of the worst case ratio of a simple algorithm for simple assembly lin...
A study of the worst case ratio of a simple algorithm for simple assembly lin...A study of the worst case ratio of a simple algorithm for simple assembly lin...
A study of the worst case ratio of a simple algorithm for simple assembly lin...
 
PC Troubleshooting - Module 1
PC Troubleshooting - Module 1PC Troubleshooting - Module 1
PC Troubleshooting - Module 1
 
Contigious
ContigiousContigious
Contigious
 
Introduction to Memory
Introduction to MemoryIntroduction to Memory
Introduction to Memory
 
Continguous Memory Allocator in the Linux Kernel
Continguous Memory Allocator in the Linux KernelContinguous Memory Allocator in the Linux Kernel
Continguous Memory Allocator in the Linux Kernel
 
34 single partition allocation
34 single partition allocation34 single partition allocation
34 single partition allocation
 
35. multiplepartitionallocation
35. multiplepartitionallocation35. multiplepartitionallocation
35. multiplepartitionallocation
 

Similar to Memory management techniques

Understanding operating systems 5th ed ch02
Understanding operating systems 5th ed ch02Understanding operating systems 5th ed ch02
Understanding operating systems 5th ed ch02BarrBoy
 
amer-memory1.ppt
amer-memory1.pptamer-memory1.ppt
amer-memory1.pptRohitPaul71
 
Memory allocation for real time operating system
Memory allocation for real time operating systemMemory allocation for real time operating system
Memory allocation for real time operating systemAsma'a Lafi
 
Unit iiios Storage Management
Unit iiios Storage ManagementUnit iiios Storage Management
Unit iiios Storage Managementdonny101
 
Chapter 8 : Memory
Chapter 8 : MemoryChapter 8 : Memory
Chapter 8 : MemoryAmin Omi
 
Memory Managementgggffffffffffgggggggggg
Memory ManagementgggffffffffffggggggggggMemory Managementgggffffffffffgggggggggg
Memory ManagementgggffffffffffggggggggggBHUPESHRAHANGDALE200
 
Root file system
Root file systemRoot file system
Root file systemBindu U
 
Operating Systems Part III-Memory Management
Operating Systems Part III-Memory ManagementOperating Systems Part III-Memory Management
Operating Systems Part III-Memory ManagementAjit Nayak
 
local_media3192961381667787861026781.pptx
local_media3192961381667787861026781.pptxlocal_media3192961381667787861026781.pptx
local_media3192961381667787861026781.pptxLyn B
 
DB ppt OS unit - 3.pdf
DB ppt OS unit - 3.pdfDB ppt OS unit - 3.pdf
DB ppt OS unit - 3.pdfDBharathi8
 

Similar to Memory management techniques (20)

Understanding operating systems 5th ed ch02
Understanding operating systems 5th ed ch02Understanding operating systems 5th ed ch02
Understanding operating systems 5th ed ch02
 
chapter2-OS.pdf
chapter2-OS.pdfchapter2-OS.pdf
chapter2-OS.pdf
 
Chap7
Chap7Chap7
Chap7
 
amer-memory1.ppt
amer-memory1.pptamer-memory1.ppt
amer-memory1.ppt
 
Memory Management
Memory ManagementMemory Management
Memory Management
 
Memory allocation for real time operating system
Memory allocation for real time operating systemMemory allocation for real time operating system
Memory allocation for real time operating system
 
Recovery system
Recovery systemRecovery system
Recovery system
 
unit5_os (1).pptx
unit5_os (1).pptxunit5_os (1).pptx
unit5_os (1).pptx
 
Unit iiios Storage Management
Unit iiios Storage ManagementUnit iiios Storage Management
Unit iiios Storage Management
 
Chapter 8 : Memory
Chapter 8 : MemoryChapter 8 : Memory
Chapter 8 : Memory
 
Memory Management
Memory ManagementMemory Management
Memory Management
 
Memory Managementgggffffffffffgggggggggg
Memory ManagementgggffffffffffggggggggggMemory Managementgggffffffffffgggggggggg
Memory Managementgggffffffffffgggggggggg
 
Root file system
Root file systemRoot file system
Root file system
 
Operating Systems Part III-Memory Management
Operating Systems Part III-Memory ManagementOperating Systems Part III-Memory Management
Operating Systems Part III-Memory Management
 
local_media3192961381667787861026781.pptx
local_media3192961381667787861026781.pptxlocal_media3192961381667787861026781.pptx
local_media3192961381667787861026781.pptx
 
Memory management OS
Memory management OSMemory management OS
Memory management OS
 
Dos
DosDos
Dos
 
DB ppt OS unit - 3.pdf
DB ppt OS unit - 3.pdfDB ppt OS unit - 3.pdf
DB ppt OS unit - 3.pdf
 
CH08.pdf
CH08.pdfCH08.pdf
CH08.pdf
 
DBMS
DBMSDBMS
DBMS
 

Recently uploaded

Dubai Call Girls Starlet O525547819 Call Girls Dubai Showen Dating
Dubai Call Girls Starlet O525547819 Call Girls Dubai Showen DatingDubai Call Girls Starlet O525547819 Call Girls Dubai Showen Dating
Dubai Call Girls Starlet O525547819 Call Girls Dubai Showen Datingkojalkojal131
 
Escorts Service Cambridge Layout ☎ 7737669865☎ Book Your One night Stand (Ba...
Escorts Service Cambridge Layout  ☎ 7737669865☎ Book Your One night Stand (Ba...Escorts Service Cambridge Layout  ☎ 7737669865☎ Book Your One night Stand (Ba...
Escorts Service Cambridge Layout ☎ 7737669865☎ Book Your One night Stand (Ba...amitlee9823
 
Delhi Call Girls Nehru Place 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Nehru Place 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Nehru Place 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Nehru Place 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Delhi Call Girls Preet Vihar 9711199171 ☎✔👌✔ Whatsapp Body to body massage wi...
Delhi Call Girls Preet Vihar 9711199171 ☎✔👌✔ Whatsapp Body to body massage wi...Delhi Call Girls Preet Vihar 9711199171 ☎✔👌✔ Whatsapp Body to body massage wi...
Delhi Call Girls Preet Vihar 9711199171 ☎✔👌✔ Whatsapp Body to body massage wi...shivangimorya083
 
Delhi Call Girls South Ex 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls South Ex 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls South Ex 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls South Ex 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Experience Certificate - Marketing Analyst-Soham Mondal.pdf
Experience Certificate - Marketing Analyst-Soham Mondal.pdfExperience Certificate - Marketing Analyst-Soham Mondal.pdf
Experience Certificate - Marketing Analyst-Soham Mondal.pdfSoham Mondal
 
Call Girls Hosur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hosur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Hosur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hosur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangaloreamitlee9823
 
CALL ON ➥8923113531 🔝Call Girls Husainganj Lucknow best Female service 🧳
CALL ON ➥8923113531 🔝Call Girls Husainganj Lucknow best Female service  🧳CALL ON ➥8923113531 🔝Call Girls Husainganj Lucknow best Female service  🧳
CALL ON ➥8923113531 🔝Call Girls Husainganj Lucknow best Female service 🧳anilsa9823
 
女王大学硕士毕业证成绩单(加急办理)认证海外毕业证
女王大学硕士毕业证成绩单(加急办理)认证海外毕业证女王大学硕士毕业证成绩单(加急办理)认证海外毕业证
女王大学硕士毕业证成绩单(加急办理)认证海外毕业证obuhobo
 
Personal Brand Exploration - Fernando Negron
Personal Brand Exploration - Fernando NegronPersonal Brand Exploration - Fernando Negron
Personal Brand Exploration - Fernando Negronnegronf24
 
WhatsApp 📞 8448380779 ✅Call Girls In Salarpur Sector 81 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Salarpur Sector 81 ( Noida)WhatsApp 📞 8448380779 ✅Call Girls In Salarpur Sector 81 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Salarpur Sector 81 ( Noida)Delhi Call girls
 
内布拉斯加大学林肯分校毕业证录取书( 退学 )学位证书硕士
内布拉斯加大学林肯分校毕业证录取书( 退学 )学位证书硕士内布拉斯加大学林肯分校毕业证录取书( 退学 )学位证书硕士
内布拉斯加大学林肯分校毕业证录取书( 退学 )学位证书硕士obuhobo
 
Call Girls Alandi Road Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Alandi Road Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Alandi Road Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Alandi Road Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
Internship Report].pdf iiwmoosmsosmshkssmk
Internship Report].pdf iiwmoosmsosmshkssmkInternship Report].pdf iiwmoosmsosmshkssmk
Internship Report].pdf iiwmoosmsosmshkssmkSujalTamhane
 
Motilal Oswal Gift City Fund PPT - Apr 2024.pptx
Motilal Oswal Gift City Fund PPT - Apr 2024.pptxMotilal Oswal Gift City Fund PPT - Apr 2024.pptx
Motilal Oswal Gift City Fund PPT - Apr 2024.pptxMaulikVasani1
 
Delhi Call Girls Munirka 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Munirka 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Munirka 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Munirka 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Dark Dubai Call Girls O525547819 Skin Call Girls Dubai
Dark Dubai Call Girls O525547819 Skin Call Girls DubaiDark Dubai Call Girls O525547819 Skin Call Girls Dubai
Dark Dubai Call Girls O525547819 Skin Call Girls Dubaikojalkojal131
 
Resumes, Cover Letters, and Applying Online
Resumes, Cover Letters, and Applying OnlineResumes, Cover Letters, and Applying Online
Resumes, Cover Letters, and Applying OnlineBruce Bennett
 

Recently uploaded (20)

Dubai Call Girls Starlet O525547819 Call Girls Dubai Showen Dating
Dubai Call Girls Starlet O525547819 Call Girls Dubai Showen DatingDubai Call Girls Starlet O525547819 Call Girls Dubai Showen Dating
Dubai Call Girls Starlet O525547819 Call Girls Dubai Showen Dating
 
Escorts Service Cambridge Layout ☎ 7737669865☎ Book Your One night Stand (Ba...
Escorts Service Cambridge Layout  ☎ 7737669865☎ Book Your One night Stand (Ba...Escorts Service Cambridge Layout  ☎ 7737669865☎ Book Your One night Stand (Ba...
Escorts Service Cambridge Layout ☎ 7737669865☎ Book Your One night Stand (Ba...
 
Delhi Call Girls Nehru Place 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Nehru Place 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Nehru Place 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Nehru Place 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Delhi Call Girls Preet Vihar 9711199171 ☎✔👌✔ Whatsapp Body to body massage wi...
Delhi Call Girls Preet Vihar 9711199171 ☎✔👌✔ Whatsapp Body to body massage wi...Delhi Call Girls Preet Vihar 9711199171 ☎✔👌✔ Whatsapp Body to body massage wi...
Delhi Call Girls Preet Vihar 9711199171 ☎✔👌✔ Whatsapp Body to body massage wi...
 
Delhi Call Girls South Ex 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls South Ex 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls South Ex 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls South Ex 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Experience Certificate - Marketing Analyst-Soham Mondal.pdf
Experience Certificate - Marketing Analyst-Soham Mondal.pdfExperience Certificate - Marketing Analyst-Soham Mondal.pdf
Experience Certificate - Marketing Analyst-Soham Mondal.pdf
 
Call Girls Hosur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hosur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Hosur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hosur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
 
Call Girls In Prashant Vihar꧁❤ 🔝 9953056974🔝❤꧂ Escort ServiCe
Call Girls In Prashant Vihar꧁❤ 🔝 9953056974🔝❤꧂ Escort ServiCeCall Girls In Prashant Vihar꧁❤ 🔝 9953056974🔝❤꧂ Escort ServiCe
Call Girls In Prashant Vihar꧁❤ 🔝 9953056974🔝❤꧂ Escort ServiCe
 
CALL ON ➥8923113531 🔝Call Girls Husainganj Lucknow best Female service 🧳
CALL ON ➥8923113531 🔝Call Girls Husainganj Lucknow best Female service  🧳CALL ON ➥8923113531 🔝Call Girls Husainganj Lucknow best Female service  🧳
CALL ON ➥8923113531 🔝Call Girls Husainganj Lucknow best Female service 🧳
 
女王大学硕士毕业证成绩单(加急办理)认证海外毕业证
女王大学硕士毕业证成绩单(加急办理)认证海外毕业证女王大学硕士毕业证成绩单(加急办理)认证海外毕业证
女王大学硕士毕业证成绩单(加急办理)认证海外毕业证
 
Personal Brand Exploration - Fernando Negron
Personal Brand Exploration - Fernando NegronPersonal Brand Exploration - Fernando Negron
Personal Brand Exploration - Fernando Negron
 
WhatsApp 📞 8448380779 ✅Call Girls In Salarpur Sector 81 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Salarpur Sector 81 ( Noida)WhatsApp 📞 8448380779 ✅Call Girls In Salarpur Sector 81 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Salarpur Sector 81 ( Noida)
 
内布拉斯加大学林肯分校毕业证录取书( 退学 )学位证书硕士
内布拉斯加大学林肯分校毕业证录取书( 退学 )学位证书硕士内布拉斯加大学林肯分校毕业证录取书( 退学 )学位证书硕士
内布拉斯加大学林肯分校毕业证录取书( 退学 )学位证书硕士
 
Call Girls Alandi Road Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Alandi Road Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Alandi Road Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Alandi Road Call Me 7737669865 Budget Friendly No Advance Booking
 
Internship Report].pdf iiwmoosmsosmshkssmk
Internship Report].pdf iiwmoosmsosmshkssmkInternship Report].pdf iiwmoosmsosmshkssmk
Internship Report].pdf iiwmoosmsosmshkssmk
 
Motilal Oswal Gift City Fund PPT - Apr 2024.pptx
Motilal Oswal Gift City Fund PPT - Apr 2024.pptxMotilal Oswal Gift City Fund PPT - Apr 2024.pptx
Motilal Oswal Gift City Fund PPT - Apr 2024.pptx
 
Delhi Call Girls Munirka 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Munirka 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Munirka 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Munirka 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Dark Dubai Call Girls O525547819 Skin Call Girls Dubai
Dark Dubai Call Girls O525547819 Skin Call Girls DubaiDark Dubai Call Girls O525547819 Skin Call Girls Dubai
Dark Dubai Call Girls O525547819 Skin Call Girls Dubai
 
Resumes, Cover Letters, and Applying Online
Resumes, Cover Letters, and Applying OnlineResumes, Cover Letters, and Applying Online
Resumes, Cover Letters, and Applying Online
 
Sensual Moments: +91 9999965857 Independent Call Girls Paharganj Delhi {{ Mon...
Sensual Moments: +91 9999965857 Independent Call Girls Paharganj Delhi {{ Mon...Sensual Moments: +91 9999965857 Independent Call Girls Paharganj Delhi {{ Mon...
Sensual Moments: +91 9999965857 Independent Call Girls Paharganj Delhi {{ Mon...
 

Memory management techniques

  • 1. Chapter 2 Memory Management: Early Systems Understanding Operating Systems, Fourth Edition
  • 2.
  • 3.
  • 4. Memory Management: Early Systems Understanding Operating Systems, Fourth Edition “ Memory is the primary and fundamental power, without which there could be no other intellectual operation.” —Samuel Johnson (1709–1784)
  • 5.
  • 6.
  • 7.
  • 8.
  • 9. Fixed Partitions (continued) Understanding Operating Systems, Fourth Edition Table 2.1: A simplified fixed partition memory table with the free partition shaded To allocate memory spaces to jobs, the operating system’s Memory Manager must keep a table as shown below:
  • 10. Fixed Partitions (continued) Understanding Operating Systems, Fourth Edition Figure 2.1: Main memory use during fixed partition allocation of Table 2.1 NOTE: Job 3 must wait even though 70K of free space is available in Partition 1 where Job 1 occupies only 30K of the 100K available
  • 11.
  • 12.
  • 13. Dynamic Partitions (continued) Understanding Operating Systems, Fourth Edition Figure 2.2: Main memory use during dynamic partition allocation
  • 14. Dynamic Partitions (continued) Understanding Operating Systems, Fourth Edition Figure 2.2 (continued): Main memory use during dynamic partition allocation
  • 15.
  • 16.
  • 17. Best-Fit Versus First-Fit Allocation (continued) Understanding Operating Systems, Fourth Edition Figure 2.3: An example of a first-fit free scheme
  • 18. Best-Fit Versus First-Fit Allocation (continued) Understanding Operating Systems, Fourth Edition Figure 2.4: An example of a best-fit free scheme
  • 19.
  • 20.
  • 21. Best-Fit Versus First-Fit Allocation (continued) Understanding Operating Systems, Fourth Edition Table 2.2: Status of each memory block before and after a request is made for a block of 200 spaces using the first-fit algorithm
  • 22.
  • 23. Best-Fit Versus First-Fit Allocation (continued) Understanding Operating Systems, Fourth Edition Table 2.3: Status of each memory block before and after a request is made for a memory block of 200 spaces using the best -fit algorithm
  • 24.
  • 25.
  • 26.
  • 27.
  • 28. Case 1: Joining Two Free Blocks Understanding Operating Systems, Fourth Edition Table 2.4: Original free list before deallocation for Case 1
  • 29. Case 1: Joining Two Free Blocks (continued) Understanding Operating Systems, Fourth Edition Table 2.5: Free list after deallocation for Case 1
  • 30.
  • 31. Case 2: Joining Three Free Blocks Understanding Operating Systems, Fourth Edition Table 2.6: Original free list before deallocation for Case 2
  • 32. Case 2: Joining Three Free Blocks (continued) Understanding Operating Systems, Fourth Edition Table 2.7: Free list after job has released memory
  • 33.
  • 34. Case 3: Deallocating an Isolated Block Understanding Operating Systems, Fourth Edition Table 2.8: Original free list before deallocation for Case 3
  • 35. Case 3: Deallocating an Isolated Block (continued) Understanding Operating Systems, Fourth Edition Table 2.9: The job to be deallocated is of size 445 and begins at location 8805. The asterisk indicates the soon-to - be-free memory block. Table 2.9: Memory list before deallocation
  • 36. Case 3: Deallocating an Isolated Block (continued) Understanding Operating Systems, Fourth Edition Table 2.10: Busy list after the job has released its memory. The asterisk indicates the new null entry in the busy list.
  • 37. Case 3: Deallocating an Isolated Block (continued) Understanding Operating Systems, Fourth Edition Table 2.11: Free list after the job has released its memory. The asterisk indicates the new free block entry replacing the null entry
  • 38.
  • 39.
  • 40. Relocatable Dynamic Partitions (continued) Understanding Operating Systems, Fourth Edition Figure 2.5: An assembly language program that performs a simple incremental operation
  • 41. Relocatable Dynamic Partitions (continued) Understanding Operating Systems, Fourth Edition Figure 2.6: The original assembly language program after it has been processed by the assembler
  • 42.
  • 43.
  • 44.
  • 45. Relocatable Dynamic Partitions (continued) Understanding Operating Systems, Fourth Edition Figure 2.7: Three snapshots of memory before and after compaction
  • 46. Relocatable Dynamic Partitions (continued) Understanding Operating Systems, Fourth Edition Figure 2.8: Contents of relocation register and close-up of Job 4 memory area (a) before relocation and (b) after relocation and compaction
  • 47.
  • 48.
  • 49.