Patent ID: 7987462
Filing Date: 2011-07-26
Classification: G06F

Abstract:
1. A method of automatic throttling of work producer threads, said method comprising: capturing, by a consumer thread, a work structure; allowing said consumer thread to determine how many elements are in said work structure, a RATE-OF-THE-CONSUMER ‘Rc’, a RATE-OF-THE-PRODUCER ‘Rp’, an amount-of-work-present ‘W’, and a WORK-PROJECTED ‘Wp’ value; and throttling, selectively, by allowing said consumer thread to direct a plurality of producer threads to sleep for a SLEEP-TIME ‘Sp’ when said WORK-PROJECTED ‘Wp’ is greater than a threshold value ‘T’; wherein the number of said plurality of producer threads directed to sleep by said consumer thread is calculated by formula as NUMBER-OF-PRODUCER-THREADS-PAUSED ‘Np’=‘N’−(‘T’/‘Wp’)*‘N’, where N is a number of unique producer threads.