1. An apparatus for controlling a data memory that stores therein data transferred from a memory access controller connected to a main storing unit, the apparatus comprising: a processing unit that executes a computing process using data; a queue that temporarily retains data that is transferred from the memory access controller to the data memory; a selector that selects either one of data output from the queue and data output from the data memory; a line that connects a point between the queue and the data memory, and the selector; and a control unit that, when data retained in the queue is written in the data memory, outputs same data as the data that is written in the data memory from the queue to the selector through the line, and transfers the output data from the selector to the processing unit.