1. An information processing apparatus comprising: a memory configured to store a data queue comprised of individual data; and at least one processor configured to process either of a data generation thread for placing data generated into the data queue or a data consumption thread for retrieving the data from the data queue, wherein, when there is no data to be retrieved in the data queue during processing of the data consumption thread, the processor placed identification information of the data consumption thread into the data queue, and wherein, when the data is to be placed into the data queue during processing of the data generation thread and when the identification information of the data consumption thread has been placed into the data queue, the processor changes a storage location of the data in such a manner that the data consumption thread is acquired.