LIFO

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