Patent ID: 8531470

Claim:
A computer implemented method for processing media data, the method comprising: maintaining an indicator, a first data and a second data for managing processing resource allocated via a host processing unit for the processing of the media data; updating the first data to represent cumulatively commands that have been sent to a dedicated processing unit coupled with the host processing unit, each command associated with the processing resource; updating the second data to represent cumulatively a portion of the commands that have been processed by the dedicated processing unit, wherein the first and second data are asynchronously updated; in response to a request for performing a management operation on the processing resource, comparing the first and second data to determine a response to respond to the request to allow the response to be asynchronous to the management operation on the processing resource for parallel operations between the host processing unit and the dedicated processing unit; updating the indicator to return the response without performing the management operation if the first and second data do not satisfy a predetermined relationship based on the comparison, the indicator to indicate the request for performing the management operation on the processing resource; and performing the management operation on the processing resource according to the updated indicator when the first and the second data satisfy the predetermined relationship.