Should you protect the global data in threads? Why or why
not?
Answer Posted / aravind k r
Global data need to be stored in a common place where each
thread can access it within that program. So it shouldnot
be stored on a particular thread but in the process's
memory where each thread can access it.
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Can an interface inherit a class?
What is the real life example of polymorphism?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
What is the point of oop?
Why is destructor used?
What is advantage of inheritance?
What are the components of marker interface?
how to get the oracle certification? send me the answer
Can private class be inherited?
What is destructor in oop?
What does enum stand for?
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
What is object and class in oops?
What do you mean by Encapsulation?
What are the benefits of interface?