A portable electronic device comprises a control section comprising CPU and RAM which turn off a power if a keyboard has not been operated for a predetermined period of time, set whether the power is to be turned off, and set the predetermined period of time in which the power is turned off. The RAM saves data which is being processed when the power is turned off, even after the power is turned off. The CPU enables the process which is interrupted when the power is turned off to be resumed, on the basis of the data stored in the RAM and determines whether to resume the process which is interrupted when the power is turned off.
展开▼