Patent ID: 8705879

Claim:
A method for compressing an image on a system with a plurality of processors comprising: dividing the image into a first slice, a second slice, and a third slice, each slice comprising a portion of the image; associating a first thread to execute only on a first processor; associating a second thread to execute only on a second processor; assigning the first slice to the first thread, and executing the first thread on the first processor because the first thread has been associated to execute only on the first processor; assigning the second slice to the second thread, and executing the second thread on the second processor because the second thread has been associated to execute only on the second processor; receiving an indication that the first slice has been processed; in response to receiving the indication that the first slice has been processed, and in response to determining that the first processor has unused processing resources, assigning the third slice to the first thread, and executing the first thread on the first processor because the first thread has been associated to execute only on the first processor; receiving an indication that the second slice has been processed; receiving an indication that the third slice has been processed; assembling the first, second, and third slices into a second image, the second image corresponding to the image being compressed.