LIFO

From Hackepedia
Revision as of 15:22, 3 December 2005 by Pbug (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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).