“I bought this guide a few days ago to prepare for my interview with Oracle. Many of the questions they asked me were from this guide. I found this book absolutely great!”
This depends on your definition of ’support’. C++ utilizes pthread library to support multiple points of execution. So C++ does not have an intrinsic thread class, but provides the necessary tools through for instance multiple definition of a single class, heap support, etc. that permit threading. The pthread library connects an Operating System’s threading model to the pthread syntax, providing the low level objects (semaphore,locks,queues) in a compatible manner. So C++ does not have an intrinsic threading model, but supports threading through the pthread library and C++ memory architecture.
Ajay is right. Although C++ doesn’t have built-in support for threading right now, the next standard that’s coming up is going to take care of this shortcoming.
No. C++ does not support in-built Multithreading. To do so, you must use the operating system functions manually.
Better use pthread library.
This depends on your definition of ’support’. C++ utilizes pthread library to support multiple points of execution. So C++ does not have an intrinsic thread class, but provides the necessary tools through for instance multiple definition of a single class, heap support, etc. that permit threading. The pthread library connects an Operating System’s threading model to the pthread syntax, providing the low level objects (semaphore,locks,queues) in a compatible manner. So C++ does not have an intrinsic threading model, but supports threading through the pthread library and C++ memory architecture.
The lates standard of C++ that came out is C99, which does not have any native threading support, OS\’s and libraries have their own variants.
But the new standard C++0x will have ’standardized’ threading support (along with umpteen other advancements).
Ajay is right. Although C++ doesn’t have built-in support for threading right now, the next standard that’s coming up is going to take care of this shortcoming.
Leave an Answer/Comment