How to write Multithreaded applications using C++?

Answers were Sorted based on User's Feedback



How to write Multithreaded applications using C++?..

Answer / mms zubeir

Well, ISO C++ doesn't provide the mechanisms to control
over operating system devices like thread. We need to use
the support provided by the operating system SDKs or any
third party libraries. For example, Win32's CreateThread()
API would help.

Is This Answer Correct ?    8 Yes 2 No

How to write Multithreaded applications using C++?..

Answer / peter_2012

It depends most of for what kind of system we will use to
run application.
Linux - standard POSIX pthread library coud be used (it is
C thrading implementation),
Windows - Win32 API,
or we can use boost threading library wich provides sets of
objects for thread creation and synchronization.

Is This Answer Correct ?    8 Yes 2 No

Post New Answer

More C++ General Interview Questions

What are c++ stream classes?

0 Answers  


write a program that takes two numbers from user that prints the smallest number

2 Answers  


Why would you use pointers in c++?

0 Answers  


What is the use of c++ programming language in real life?

0 Answers  


Why is c++ not purely object oriented?

0 Answers  






What kind of jobs can I get with c++?

0 Answers  


Which uses less memory? a) struct astruct { int x; float y; int v; }; b) union aunion { int x; float v; }; c) char array[10];

4 Answers   Quark,


Which of the following is not a valid declaration for main() a) int main() b) int main(int argc, char *argv[]) c) They both work

0 Answers  


How do you initialize a string in c++?

0 Answers  


I want to write a C++ language program that: 1. Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. The program should work for squares of all side sizes between 1 and 20.

0 Answers  


What is a virtual destructor?

2 Answers  


Is c++ a pure oop language?

0 Answers  


Categories