Abstract:
An electronic device includes a memory and a processor. The memory has a storage region and stores a control program to control the electronic device in the storage region. The processor executes the control program, when the control program is executed, the processor operates; an access counter that has a specific initial value and avoids an access competition to an access object accessed from a plurality of tasks; a high priority level task that increments the access counter when starting an access to the access object, and decrements the access counter when completing the access to the access object; and a low priority level task that accesses the access object when the access counter has the specific initial value.
Abstract:
A pull-up resistor of an electronic device pulls up a potential of a USB signal line that is for connection with a host, thereby allowing the host to detect a communication speed. In response to a status request from the host in a normal power mode, a transmission-reception section transmits a status response indicating a switchable status when the electronic device is switchable to a power saving mode. A control section performs switching to the power saving mode after the host suspends transmission of the status request upon receipt of the status response, and performs switching to the normal power mode in response to a specific event within the electronic device in the power saving mode. A switch disables the pull-up to inform the host about disconnection, and enables the pull-up to inform the host that the connection is re-established, thereby causing transmission of the status request to be resumed.
Abstract:
To provide an electronic device that can restrict a delayed execution of a process whose existence is impossible to confirm for an overwrite erasure thread. An MFP includes a job execution part that executes a job and an overwrite erasure thread that performs overwrite erasures of obsolete files. The overwrite erasure thread performs the overwrite erasures intermittently even while the job is in execution if the obsolete files have a size more than a threshold value size. The job execution part performs the overwrite erasures while the job is in execution if the obsolete files have a size less than the threshold value size.
Abstract:
An electronic device includes volatile memory, flash memory, and a CPU. The volatile memory includes a first actual data region that records actual data and a first log region that records update information including update data used for updating the actual data. The flash memory includes blocks and undergoes block unit initialization when writing is to be performed thereto. The blocks each include a second actual data region that records actual data and a second log region that records update information written from the first log region. The CPU writes update information corresponding to update data to the first log region when updating actual data using the update data. At a preset specific timing, the CPU collects update information recorded in the first log region, writes the collected update information to the second log regions in accordance with a specific order, and subsequently initializes the first log region.