In computer programming, housekeeping can refer to either a standard entry or exit routine appended to a user-written block of code at its entry and exit or, alternatively, to any other automated or manual software process whereby a computer is cleaned up after usage.