Patent ID: 8769170

Claim:
An electronic device comprising: a write control unit that cyclically writes commands received from a host computer in the order received to a receive buffer; a command execution unit that reads and executes commands written to the receive buffer in the order written; and a real-time command execution unit that detects real-time commands in the order written from among commands written to the receive buffer, and sequentially reads and executes detected real-time commands; wherein the electronic device goes from a normal mode to a full-buffer mode when the capacity of empty space in which received commands can be written and which is formed in the receive buffer after executing a command reaches a first reference value or less, and remains in the full-buffer mode until the capacity of the empty space increases to a second reference value that is greater than the first reference value, and while in the full-buffer mode, the write control unit cyclically writes the received commands to an auxiliary space that is formed in the receive buffer, and the real-time command execution unit detects real-time commands in the order written from among the commands written to the auxiliary space, and reads and executes the detected real-time commands.