Method and system for data stream processing

The present invention discloses a method and system for processing a data stream, the method is used by a plurality of processing cores of the many-core processor performs decoding processing of the data stream, wherein the plurality of processor cores is divided into multiple resource groups, the a method comprising: assigning a data stream to a plurality of resources, some or all of the group; and each resource group is allocated to the data stream on the decoding process resource group. By the present invention a plurality of resource sets allocated to a plurality of data streams obtained by dividing the core processing part or all of the decoding process and the data stream is allocated to the resource group in each resource group, it is possible for multiple data streams are processed in parallel, and each segment of each stream is reduced in response to the input of a delay in response generating delay the entire stream, the processing efficiency, optimize the use of processor resources.