decaf 线程 vs boost 线程 vs 全线程
我正在考虑对于必须在 x86、x86_64 和 powerpc 架构上运行的相对较小的 C++ 项目使用哪个线程库。
该项目使用 ActiveMQ,它提供 decaf::lang::Thread 和 decaf::util::concurrent 设施。我没有使用这个库的经验,找不到任何教程/示例,只有文档?
你们中有人曾经使用过无咖啡因线程吗?您能告诉我您的经验并与您知道的其他产品进行一些比较吗?
谢谢你, BB
I'm thinking about which threading library to use for a relatively small C++ project that has to run on x86, x86_64 and powerpc architectures.
The project is using ActiveMQ, which provides the decaf::lang::Thread and decaf::util::concurrent facilities. I have no experience with this library and cannot find any tutorial/examples, only documentation?
Has one of you guys/girls ever worked with decaf threading? Can you tell me your experiences and do a little comparison to other products you know?
Thank you,
bb
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来 ActiveMQ 的 decaf::util::concurrent 设施相当不错,因为它们提供了一些并发容器和线程池设施,但我仍然可能会投票支持使用 boost::thread 因为它似乎有更多的文档记录,除非您可以预见到您的线程实际上需要符合 ActiveMQ 线程类型签名的情况,但经过一些快速搜索后我可以没有找到很多迹象表明这是必要的。
boost::thread
非常成熟,非常可移植,功能非常完整,并且有非常完善的文档记录。Looks like ActiveMQ's
decaf::util::concurrent
facilities are pretty nice in that they provide some concurrent containers and a thread pool facility, but I'd still probably vote for usingboost::thread
since it appears to be much more well-documented, unless you can anticipate a situation where your threads would need to actually conform to the ActiveMQ thread type signature, but after some quick searching I can't find a lot of indication that that would be necessary.boost::thread
is pretty mature, very portable, very feature-complete and has the bonus of being very well-documented.