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_destroyAPR的文档似乎非常有限。
非常感谢您的建议,
发布于 2012-12-17 17:29:43
我相信APR线程池在很久以前就已经存在了,当时这些API在常规的Java运行时中并不流行。这些天,你应该看看java.util.concurrent...
我将你链接到一些告诉你如何使用它的东西上。
编辑:对不起,我需要转到第三方托管的Java教程。http://www.math.uni-hamburg.de/doc/java/tutorial/essential/threads/group.html
https://stackoverflow.com/questions/13911009
复制相似问题