C ++ standard thread class?

I have met many special implementations of the stream class in C ++, but why is there no standard class of library stream classes similar to what is in Java? The one I usually use in C ++ is http://www.linuxdocs.org/HOWTOs/C++Programming-HOWTO-24.html

+3
source share
4 answers

std::threadwill be standardized in C ++ 0x , and many compilers already support it.

Perhaps this is more ambitious than your example, because construction / destruction means initiating / combining thread execution.

Here is another article .

+13
source

, ++ 0x, Boost Thread, , Thread, .

+8

++ 1979 . , . ( , -. , 1995 pthreads .)

+2

, std:: thread, ....

:: threadhttp://www.justsoftwaresolutions.co.uk/threading/multithreading-in-c++0x-part-1-starting-threads.html

You might want to run a test with your compiler to see if it supports it. If you do not use one of the other libs before.

+1
source

Source: https://habr.com/ru/post/1741823/


All Articles