lkml.org 
[lkml]   [2009]   [Dec]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: workqueue thing
Hello,

On 12/21/2009 08:11 PM, Arjan van de Ven wrote:
> I don't mind a good and clean design; and for sure sharing thread
> pools into one pool is really good. But if I have to choose between
> a complex "how to deal with deadlocks" algorithm, versus just
> running some more threads in the pool, I'll pick the later.

The deadlock avoidance algorithm is pretty simple. It creates a new
worker when everything is blocked. If the attempt to create a new
worker blocks, it calls in dedicated workers to ensure allocation path
is not blocked. It's not that complex.

Thanks.

--
tejun


\
 
 \ /
  Last update: 2009-12-21 14:25    [W:0.115 / U:0.980 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site