What is multithreading and what is its use?Whats are
multithreading techniques used in C++?
Answer / pah
Threads can be used to run multiple concurrent tasks in a
single process. One use for threads is to make the user
interface responsive by running it in it's own thread and
performing heavy calculations and data manipulation in another.
C++ doesn't have any built-in multi-threading support but
you can use boost or pthread libraries for that purpose.
| Is This Answer Correct ? | 3 Yes | 1 No |
When is dynamic checking necessary?
class Foo { public: Foo(int i) { } }; class Bar : virtual Foo { public: Bar() { } }; Bar b; Referring to the above code, when the object 'b' is defined, a compiler error will occur. What action fixes the compiler error? a) Adding a virtual destructor to the class Bar b) Adding a constructor to Bar which takes an int parameter c) Adding "Foo()" to the Bar constructor d) Adding a copy constructor to the class Foo e) Adding "Foo(0)" to the Bar::Bar initializer list
What is Memory Alignment?
Do you need a main function in c++?
How do you differentiate between overloading the prefix and postfix increments?
What is realloc() and free()? What is difference between them?
Do you know the use of vtable?
What do you mean by static variables?
Eplain extern keyword?
write a C++ programming :if the no is between 32 to 50 it will be odd.
Write a program to interchange 2 variables without using the third one.
What are advantages of C++ when comparing with C?
18 Answers HP, iGate, TCS,