Re: [PATCH 01/45] Create a dynamically sized pool of threads for doing very slow work items [ver #41]

From: David Howells
Date: Fri Nov 21 2008 - 05:26:20 EST


Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:

> umm, if they're slow, why not create a kernel thread per operation?
> Why add the thread pool?

Because if someone does a tar of, say, a kernel tree, that'll create one
thread per file... This provides a limiter - and makes sure there are threads
immediately available.

David
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/