What are the difference between heap and stack, Computer Engineering

Assignment Help:

What are the difference between heap and stack?

The Stack is more or less responsible for maintaining track of what's executing into our code or what's been "called". The Heap is less or more responsible for maintain track of our things (our data, well... most of this - we'll get to which later).

Think of the Stack like a series of boxes stacked one onto top of the subsequently. We remain track of what's going on into our application by stacking other box on top every time we call a process (termed as a Frame). We can only utilize what's in the top box onto the stack. While we're completed with the top box (the way is done executing) we throw this away and proceed to use the stuff into the prior box on the top of the stack. The Heap is same accept which its purpose is to hold information as not remain track of execution most of the time, therefore anything in our Heap can be accessed at any time. Along with the Heap, there are no constraints like to what can be accessed as in the stack. The Heap is as the heap of clean laundry onto our bed which we have not taken the time to put away until now - we can grab what we require quickly. The Stack is as the stack of shoe boxes into the closet where we have to take off the top one to find to the one underneath this.


Related Discussions:- What are the difference between heap and stack

Describe the assume - assembler directives, Describe the Assume - Assembler...

Describe the Assume - Assembler directives ASSUME: This directive would be used to map the segment register names with memory addresses.  Syntax is as below: ASSUME SS:

Develop a calculator in masm, Assignment:  develop a calculator in MASM. ...

Assignment:  develop a calculator in MASM. Text chapters covered:  1 through 4, 5.4, 5.5, 6.3, 7.4 You will develop a "calculator" algorithm in MASM using reverse-polish nota

Find traffic offered and lost, Discuss grade of service. During busy hour, ...

Discuss grade of service. During busy hour, 1500 calls were offered to a group of trunks and 8 calls were lost. The average call duration was 120 seconds. Calculate the traffic off

State the important features of operating system, a. Define operating syste...

a. Define operating system? State the important features of operating system? b. Describe the following facilities for implementing interacting processes in programming language

How do you track down a transition by name, Question 1: a) How do you ...

Question 1: a) How do you track down a transition by name? b) Why Premiere Pro is considered a non-linear editor? c) Explain clearly the main problem that may arise wh

State and prove demorgan's second theorem, State and prove Demorgan's secon...

State and prove Demorgan's second theorem   Proof: Demorgan's second theorem   = A‾ + B‾ The two sides of the equation here   = A‾ + B‾ is represented through the logic d

Define the term internet, Internet:  The Internet, an umbrella term cov...

Internet:  The Internet, an umbrella term cover countless network and services that comprise a super-network, is a global network of computer networks that was started in the 1

Explain about diodes, Q. Explain about Diodes? A single pn-junction wit...

Q. Explain about Diodes? A single pn-junction with appropriate contacts for connecting the junction to external circuits is called a semiconductor pn-junction diode. The fundam

Define swapping, Define swapping.  A process needs to be in memory to b...

Define swapping.  A process needs to be in memory to be implemented. Though a process can be swapped temporarily out of memory to a backing store and then brought back into mem

Search method for searching a sorted file, The search method for searchi...

The search method for searching a sorted file that needs increased amount of space is The search technique for searching a sorted file that needs increased amount of space

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd