In POSIX systems, do you think you can get rid of PThread? It seems that the bottom layer is implemented by PThread. There is no problem at all simply using std::thread, but complex functions that need to be customized must be encapsulated based on PThread. STL is better at algorithms and containers, but multi-threading is not very good. Only represents personal opinion.
I remember that the thread library of C++11 is packaged according to OpenMP. pThread is still inferior to OpenMP in terms of performance and usage. Personally, I think it can be understood. If you don't have time, there is no need to delve deeper.
I think: std::thread and so on provided by C++11 are not language-level support, but standard library support. In fact, there is no difference between c++ thread and pthread in terms of learning and usage (maybe pthread has more parameters?), and there are other things that pthread can provide as you mentioned. As for performance, I don't think there will be any difference between the two. More differences may be in portability. So, I think we might as well learn both.
In POSIX systems, do you think you can get rid of PThread? It seems that the bottom layer is implemented by PThread. There is no problem at all simply using std::thread, but complex functions that need to be customized must be encapsulated based on PThread. STL is better at algorithms and containers, but multi-threading is not very good. Only represents personal opinion.
I remember that the thread library of C++11 is packaged according to OpenMP. pThread is still inferior to OpenMP in terms of performance and usage. Personally, I think it can be understood. If you don't have time, there is no need to delve deeper.
I think: std::thread and so on provided by C++11 are not language-level support, but standard library support. In fact, there is no difference between c++ thread and pthread in terms of learning and usage (maybe pthread has more parameters?), and there are other things that pthread can provide as you mentioned. As for performance, I don't think there will be any difference between the two. More differences may be in portability.
So, I think we might as well learn both.