SlideShare a Scribd company logo
1 of 4
Memory Management
This section describes memory management techniques, logical v/s actual address space and
various paging techniques.
emorymanagementisthe functionalityof anoperatingsystemwhichhandlesor
managesprimarymemory.Memorymanagementkeepstrackof eachand every
memorylocationeitheritisallocatedtosome processoritis free.Itcheckshow
much memoryisto be allocatedtoprocesses.Itdecideswhichprocesswill getmemoryatwhattime.It
tracks wheneversome memorygetsfreedorunallocatedandcorrespondinglyitupdatesthe status.
Memory Manager
The purpose of the memorymanageris
 To allocate primarymemoryspace toprocesses
 To map the processaddressspace intothe allocatedportionof the primarymemory
 To minimize the accesstime usingacosteffective amountof primarymemory
Memory managementprovidesprotectionby using two registers,a base registerand a limitregister.
The base registerholds the smallestlegal physical memoryaddress and the limit registerspecifiesthe
size of the range.For example,if the base registerholds300000 and the limitregisteris1209000, then
the program can legallyaccessall addressesfrom300000 through411999.
M
How at execution time address binding is done in OS?
up
vote1down
votef avor it e
I am readin Galvin's Operating System book. In memory management's
address binding it said about 3 types of address binding. compile time, load
time, execution time. And about Execution time address binding:" The
physical address are computed at the time of execution." But my question is
that these computations for the physical address is for the memory's base
address to load the process into memory. To execute the process first it has
to be loaded into memory. For that it requires some physical memory address.
Then how at execution time these addresses are computed? I am confused.
Can some provide explanation for this.
Thanks
operating-system
share| improve this question asked Jun 1 '11 at 15:10
poddroid
305619
add a comment |
3 Answers
activeoldest votes
up
vote7down
voteaccept ed
You are correct in your thinking. The difference between load-time and run-
time binding is that in run-time every time there is a memory lookup it goes
through a "relocation register" which is like the base register and then you add
an offset.
In load-time binding it does the same thing but subsequent lookups don't
require evaluation of this register. The addresses are set when it is first pulled
into memory. Hence if the base address changes you need to re-load the
whole process to fix up all the relocatable addresses.
In the case of run-time, you can move the process around in physical memory
and not need to worry about re-loading it to fix the mapping up because every
time there is an access to memory it maps it then.
Load-time binding results in matching logical/physical addresses but run-time
results in differing logical/physical addresses.
I hope this is clearer for you. I've just started learning about Memory
Management too :)
share| improve this answer answered Oct 5 '12 at
11:13
I King
8612
add a comment |
Did you find this question interesting? Try our newsletter
Sign up for our newsletter and get our top new questions delivered to your inbox (see an example).
Subscribe
up
vote0down
vote
When it says that the actual base address is generated at execution time it
means that that the address in RAM (physical address) is determined at
execution time from the virtual address using the MMU. This whole address
conversion is done on the fly. For executing the process the starting virtual
address has to be known. When the process is to be run its virtual page table
is loaded in the MMU and then the MMU quickly calculates the physical
address(in RAM) and the execution goes on with MMU generating physical
addresses from page tables. Consider reading Tanenbaum's Modern
Operating Systems. I find it better.
share| improve this answer answered Jun 2 '11 at
19:29
lovesh
1,7632465
add a comment |
up
vote0down
vote
Execution time address binding usually only applies to variables in programs
and is the most common form of binding for scripts, which do not get
compiled. In this scenario, the program requests memory space for a variable
in a program the first time that variable is encountered during the processing
of instructions in the script. The memory will be allocated to that variable until
the program sequence ends, or unless a specific instruction within the script
releases the memory address bound to a variable.

More Related Content

What's hot (12)

cache memory management
cache memory managementcache memory management
cache memory management
 
VXCON 2017
VXCON 2017VXCON 2017
VXCON 2017
 
OSCh10
OSCh10OSCh10
OSCh10
 
Cache optimization
Cache optimizationCache optimization
Cache optimization
 
Virtual memory
Virtual memoryVirtual memory
Virtual memory
 
Cache memory and cache
Cache memory and cacheCache memory and cache
Cache memory and cache
 
Cache memory
Cache memoryCache memory
Cache memory
 
data replication
data replicationdata replication
data replication
 
Cachememory
CachememoryCachememory
Cachememory
 
An Overview of Distributed Debugging
An Overview of Distributed DebuggingAn Overview of Distributed Debugging
An Overview of Distributed Debugging
 
Memory Hierarchy Design, Basics, Cache Optimization, Address Translation
Memory Hierarchy Design, Basics, Cache Optimization, Address TranslationMemory Hierarchy Design, Basics, Cache Optimization, Address Translation
Memory Hierarchy Design, Basics, Cache Optimization, Address Translation
 
Cache memory
Cache memoryCache memory
Cache memory
 

Viewers also liked

Using facebook to boost your business
Using facebook to boost your businessUsing facebook to boost your business
Using facebook to boost your businessJean Macedo
 
Communicating scientific research to policy makers and other stakeholders by ...
Communicating scientific research to policy makers and other stakeholders by ...Communicating scientific research to policy makers and other stakeholders by ...
Communicating scientific research to policy makers and other stakeholders by ...nickyprojects
 
Temas saude coletiva_2
Temas saude coletiva_2Temas saude coletiva_2
Temas saude coletiva_2rosa07
 
Octubre 20 24 tipos de familia
Octubre  20 24 tipos de familiaOctubre  20 24 tipos de familia
Octubre 20 24 tipos de familiaCOPE Pérez
 
Eric Pirart on Xavier Tremblay in: Acta Iranica 57, 2016, pp. vi-x
Eric Pirart on Xavier Tremblay in: Acta Iranica 57, 2016, pp. vi-xEric Pirart on Xavier Tremblay in: Acta Iranica 57, 2016, pp. vi-x
Eric Pirart on Xavier Tremblay in: Acta Iranica 57, 2016, pp. vi-xEncyclopaedia Iranica
 

Viewers also liked (6)

Presentación1
Presentación1Presentación1
Presentación1
 
Using facebook to boost your business
Using facebook to boost your businessUsing facebook to boost your business
Using facebook to boost your business
 
Communicating scientific research to policy makers and other stakeholders by ...
Communicating scientific research to policy makers and other stakeholders by ...Communicating scientific research to policy makers and other stakeholders by ...
Communicating scientific research to policy makers and other stakeholders by ...
 
Temas saude coletiva_2
Temas saude coletiva_2Temas saude coletiva_2
Temas saude coletiva_2
 
Octubre 20 24 tipos de familia
Octubre  20 24 tipos de familiaOctubre  20 24 tipos de familia
Octubre 20 24 tipos de familia
 
Eric Pirart on Xavier Tremblay in: Acta Iranica 57, 2016, pp. vi-x
Eric Pirart on Xavier Tremblay in: Acta Iranica 57, 2016, pp. vi-xEric Pirart on Xavier Tremblay in: Acta Iranica 57, 2016, pp. vi-x
Eric Pirart on Xavier Tremblay in: Acta Iranica 57, 2016, pp. vi-x
 

Similar to Compile,loadx time

Similar to Compile,loadx time (20)

Operating Systems - memory management
Operating Systems - memory managementOperating Systems - memory management
Operating Systems - memory management
 
Operating system Memory management
Operating system Memory management Operating system Memory management
Operating system Memory management
 
Opetating System Memory management
Opetating System Memory managementOpetating System Memory management
Opetating System Memory management
 
Lecture20-21-22.ppt
Lecture20-21-22.pptLecture20-21-22.ppt
Lecture20-21-22.ppt
 
Unit 5-lecture-2
Unit 5-lecture-2Unit 5-lecture-2
Unit 5-lecture-2
 
Memory management Assignment Help
Memory management Assignment HelpMemory management Assignment Help
Memory management Assignment Help
 
Os unit 2
Os unit 2Os unit 2
Os unit 2
 
Operating system
Operating systemOperating system
Operating system
 
Module 4 memory management
Module 4 memory managementModule 4 memory management
Module 4 memory management
 
Memory management
Memory managementMemory management
Memory management
 
Memory Management
Memory ManagementMemory Management
Memory Management
 
Memory Management
Memory ManagementMemory Management
Memory Management
 
Operating system memory management
Operating system memory managementOperating system memory management
Operating system memory management
 
Main memoryfinal
Main memoryfinalMain memoryfinal
Main memoryfinal
 
Mainmemoryfinal 161019122029
Mainmemoryfinal 161019122029Mainmemoryfinal 161019122029
Mainmemoryfinal 161019122029
 
OS_Ch9
OS_Ch9OS_Ch9
OS_Ch9
 
OSCh9
OSCh9OSCh9
OSCh9
 
Ch9 OS
Ch9 OSCh9 OS
Ch9 OS
 
Chapter 9 OS
Chapter 9 OSChapter 9 OS
Chapter 9 OS
 
UNIT-2 OS.pptx
UNIT-2 OS.pptxUNIT-2 OS.pptx
UNIT-2 OS.pptx
 

Recently uploaded

Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 

Recently uploaded (20)

Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 

Compile,loadx time

  • 1. Memory Management This section describes memory management techniques, logical v/s actual address space and various paging techniques. emorymanagementisthe functionalityof anoperatingsystemwhichhandlesor managesprimarymemory.Memorymanagementkeepstrackof eachand every memorylocationeitheritisallocatedtosome processoritis free.Itcheckshow much memoryisto be allocatedtoprocesses.Itdecideswhichprocesswill getmemoryatwhattime.It tracks wheneversome memorygetsfreedorunallocatedandcorrespondinglyitupdatesthe status. Memory Manager The purpose of the memorymanageris  To allocate primarymemoryspace toprocesses  To map the processaddressspace intothe allocatedportionof the primarymemory  To minimize the accesstime usingacosteffective amountof primarymemory Memory managementprovidesprotectionby using two registers,a base registerand a limitregister. The base registerholds the smallestlegal physical memoryaddress and the limit registerspecifiesthe size of the range.For example,if the base registerholds300000 and the limitregisteris1209000, then the program can legallyaccessall addressesfrom300000 through411999. M
  • 2. How at execution time address binding is done in OS? up vote1down votef avor it e I am readin Galvin's Operating System book. In memory management's address binding it said about 3 types of address binding. compile time, load time, execution time. And about Execution time address binding:" The physical address are computed at the time of execution." But my question is that these computations for the physical address is for the memory's base address to load the process into memory. To execute the process first it has to be loaded into memory. For that it requires some physical memory address. Then how at execution time these addresses are computed? I am confused. Can some provide explanation for this. Thanks operating-system share| improve this question asked Jun 1 '11 at 15:10 poddroid 305619 add a comment | 3 Answers activeoldest votes up vote7down voteaccept ed You are correct in your thinking. The difference between load-time and run- time binding is that in run-time every time there is a memory lookup it goes through a "relocation register" which is like the base register and then you add an offset. In load-time binding it does the same thing but subsequent lookups don't require evaluation of this register. The addresses are set when it is first pulled into memory. Hence if the base address changes you need to re-load the whole process to fix up all the relocatable addresses.
  • 3. In the case of run-time, you can move the process around in physical memory and not need to worry about re-loading it to fix the mapping up because every time there is an access to memory it maps it then. Load-time binding results in matching logical/physical addresses but run-time results in differing logical/physical addresses. I hope this is clearer for you. I've just started learning about Memory Management too :) share| improve this answer answered Oct 5 '12 at 11:13 I King 8612 add a comment | Did you find this question interesting? Try our newsletter Sign up for our newsletter and get our top new questions delivered to your inbox (see an example). Subscribe up vote0down vote When it says that the actual base address is generated at execution time it means that that the address in RAM (physical address) is determined at execution time from the virtual address using the MMU. This whole address conversion is done on the fly. For executing the process the starting virtual address has to be known. When the process is to be run its virtual page table is loaded in the MMU and then the MMU quickly calculates the physical address(in RAM) and the execution goes on with MMU generating physical addresses from page tables. Consider reading Tanenbaum's Modern Operating Systems. I find it better. share| improve this answer answered Jun 2 '11 at 19:29
  • 4. lovesh 1,7632465 add a comment | up vote0down vote Execution time address binding usually only applies to variables in programs and is the most common form of binding for scripts, which do not get compiled. In this scenario, the program requests memory space for a variable in a program the first time that variable is encountered during the processing of instructions in the script. The memory will be allocated to that variable until the program sequence ends, or unless a specific instruction within the script releases the memory address bound to a variable.