PTHREAD是在Linux中编程多线程的唯一方法吗? [英] Is the PTHREAD only way to program multithreading in Linux ?

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

问题描述

我要将C ++应用程序从Windows移植到Linux.

在移植线程相关的东西时,我观察到的是,我们可以使用pthread.除了pthraed之外,Linux中还有其他方法可用于多线程吗?

I am porting my C++ application from windows to Linux.

While porting thread related stuff, what i observed is , we can use pthread. Is ther any other way out there in Linux for multithreading other than pthraed ?

推荐答案

您可以使用开源C ++库Boost中的Thread模块.如果您还不了解Boost,无论如何都应该研究一下.
http://www.boost.org/doc/libs/1_51_0/doc/html/thread.html [^ ]
You can use the Thread module from the open source C++ library Boost. If you dont know Boost yet it is something you should look into anyway.
http://www.boost.org/doc/libs/1_51_0/doc/html/thread.html[^]


这篇关于PTHREAD是在Linux中编程多线程的唯一方法吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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