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

Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111GangaMaiya1
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdf
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdfDiuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdf
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdfKartik Tiwari
 
Ernest Hemingway's For Whom the Bell Tolls
Ernest Hemingway's For Whom the Bell TollsErnest Hemingway's For Whom the Bell Tolls
Ernest Hemingway's For Whom the Bell TollsPallavi Parmar
 
What is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxWhat is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxCeline George
 
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...MysoreMuleSoftMeetup
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxAdelaideRefugio
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsSandeep D Chaudhary
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...EADTU
 
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfUGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfNirmal Dwivedi
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...Nguyen Thanh Tu Collection
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17Celine George
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...Gary Wood
 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonhttgc7rh9c
 
Orientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdfOrientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdfElizabeth Walsh
 
Play hard learn harder: The Serious Business of Play
Play hard learn harder:  The Serious Business of PlayPlay hard learn harder:  The Serious Business of Play
Play hard learn harder: The Serious Business of PlayPooky Knightsmith
 
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
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 

Recently uploaded (20)

Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdf
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdfDiuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdf
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdf
 
Ernest Hemingway's For Whom the Bell Tolls
Ernest Hemingway's For Whom the Bell TollsErnest Hemingway's For Whom the Bell Tolls
Ernest Hemingway's For Whom the Bell Tolls
 
What is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxWhat is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptx
 
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptx
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfUGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
 
Orientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdfOrientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdf
 
Play hard learn harder: The Serious Business of Play
Play hard learn harder:  The Serious Business of PlayPlay hard learn harder:  The Serious Business of Play
Play hard learn harder: The Serious Business of Play
 
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)
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 

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.