Patent ID: 8504736

Claim:
In a system having a processor unit, a memory, and a media device, wherein the processor unit includes a main processor and an auxiliary processor having an associated local memory, a method for handling input or output (I/O) to or from the media device, the method comprising: a) receiving an incoming I/O request from an application running on the processor to transfer data to or from the media device; b) computing a predicted time T p to complete the incoming I/O request; c) inserting the incoming I/O request into a schedule embodied in the memory, wherein a position of the incoming I/O request within the schedule depends at least partly on the predicted time T p ; d) servicing the incoming I/O request according to the schedule, wherein a subsequent I/O request in the schedule that is received before the incoming I/O request is serviced is not serviced until after the incoming I/O request is serviced completely, wherein the incoming I/O request is serviced by transferring data from the media device to the local memory, and transforming the data in the local memory using the auxiliary processor.