PTHREAD VS的boost ::线程? [英] PThread vs boost::thread?

查看:585
本文介绍了PTHREAD VS的boost ::线程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

经与线程过去没有经验,这线程技术,C ++将是最简单的初学者?提高::线程或pthreads的?

Having no experience with threading in the past, which threading technique in C++ will be the easiest for a beginner? boost::thread or pthreads?

推荐答案

去的boost ::线程。这是密切相关的工作,对即将到来的 C ++标准螺纹和接口是很容易使用和习惯,以C ++(RAII代替人工资源管理)。

Go for boost::thread. It's closely related to the work on the upcoming C++ standard threads, and the interface is quite easy to use and idiomatic to C++ (RAII instead of manual resource management).

这篇关于PTHREAD VS的boost ::线程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆