Q.n. 4 Difference
Between Static Memory and Dynamic Memory
Static Memory: Static Memory devices are semiconductor memories in
which the stored data will remain permanently stored as long as power is
applied without the need of periodically rewriting or refreshing the data into
the memory. The basic element of this storage is a flip flop or
a gate. RAM, Punched Card and Tape are examples of Static Memory.
Dynamic Memory: Dynamic Memory devices are semiconductor memories in
which the stored data will not remain permanently stored, even with power
applied unless the data is periodically rewritten into
the memory. Data is stored as
charge on capacitors. The charge on capacitor has to be periodically refeshed
in order to prevent it from leaking away. DRAM & Charge
Coupled Device (CCD) are example of Dynamic Memory.
STATIC
MEMORY ALLOCATION
|
DYNAMIC
MEMORY ALLOCATION
|
Memory is allocated before the execution of the program begins. (During Compilation) |
Memory is allocated during the execution of the program. |
No memory allocation or deallocation actions are performed during Execution. |
Memory Bindings are established and destroyed during the Execution. |
Variables remain permanently allocated. |
Allocated only when program unit is active. |
Implemented using stacks and heaps. |
Implemented using data segments. |
Pointer is needed to accessing variables. |
No need of Dynamically allocated pointers. |
Faster execution than Dynamic. |
Slower execution than static. |
More memory Space required. |
Less Memory space required. |
Thanks for this good answer
ReplyDeleteVERY USEFULL ..KEEP ON GUYS
ReplyDeleteTHANKS
Easy to understand.
ReplyDeleteThanks
thanks for your helping
ReplyDeleteIts a very useful. Thanks a lot.
ReplyDeleteThanks ,it is very useful
ReplyDeleteTq but difrents are not her
ReplyDeleteThank you...very helpful
ReplyDelete