gcc 4.7.2
Apache Portable Runtime
您好,
我开始使用线程进行apr。我的程序将使用很多线程,我想使用线程池,以便我可以更好地控制它们。
但是,apr并没有太多关于创建线程池的文档。我查看了以下api的
/* Create the threading pool */
apr_thread_pool_create
/* Would I still need to do this, as the below api will create new thread? */
apr_thread_create
/* Or would this be better */
apr_procattr_create
/* When all finished */
apr_thread_pool_destroy
APR的文档似乎非常有限。
非常感谢任何建议,
答案 0 :(得分:1)
我相信APR线程池在较旧的时候存在,而这些API在常规Java运行时中并不普遍。这些天你应该看一下java.util.concurrent ...
我将您链接到告诉您如何使用它的内容。
编辑:对不起,我需要为此进入第三方托管的Java教程。 http://www.math.uni-hamburg.de/doc/java/tutorial/essential/threads/group.html