Posts Tagged ‘programming’
memory leak pseudocode (from wikipedia)
February 7th, 2008 •
tags: programming
When a button is pressed: Get some memory, which will be used to remember the floor number Put the floor number into the memory Are we already on the target floor? If so, we have nothing to do: finished Otherwise: Wait until the lift is idle Go to the required floor Release the memory we used to remember the floor number