LIFO: Difference between revisions
From Hackepedia
Jump to navigationJump to search
No edit summary |
(No difference)
|
Latest revision as of 14:22, 3 December 2005
A LIFO (Last-in First-out) is found in computers naturally in the Stack of processes. A Stack will grow by the CPU pushing data on it (such as registers that need to be saved) and when the function executed is finished it will pop (or give back) the data from the stack to the CPU (in order to restore the previous value of registers).