Messages in this thread | | | From | David Howells <> | Subject | Re: [PATCH 01/45] Create a dynamically sized pool of threads for doing very slow work items [ver #41] | Date | Sat, 22 Nov 2008 00:38:58 +0000 |
| |
Andrew Morton <akpm@linux-foundation.org> wrote:
> Those two objectives seem incompatible. What does a caller do when the > limit has been hit? Do the work synchronously?
No. The work is queued for later processing by the pool. The piece of memory that records the pending work is much smaller than the memory required to hold a thread. The threads in the pool actually do the work. The submitter of the work gets on with its life - unless it has to be synchronous.
David
| |