中国开发网: 论坛: 程序员情感CBD: 贴子 72120
furnace
I don't think so.
Thread Pool in linux actualy means Process Pool, which use process to simulate the thead.It may be called Process Pool.

// ------
A example (can't run oh)

In Thread Pool, there are 10 processes, each one is a linux process.

When you call the method(I assume that)

ThreadPool::CreateThread(int id_...);

This method pick up one process which are availible curently in your thread pool.
//===
for each call, The thread pool is response for checking if there is threadss(process) availible in your thread pool, if 10 processes are using now, This method will wait, Thread pool will allocate and deallocate all resource for your request automactilly..The algorithm is not that simple, but anyway you can do it in the simple way.
I don't mind if you r FAT.
I don't mind if you r UGLY.
I don't mind if you ACT CUTE.
But I can't STAND if you r FAT, UGLY and still ACT CUTE.

相关信息:


欢迎光临本社区,您还没有登录,不能发贴子。请在 这里登录