Should you protect the global data in threads? Why or why
not?
Answers were Sorted based on User's Feedback
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 |
What is the difference between encapsulation and polymorphism?
Why do we need oop?
what is the difference between class to class type conversion and copy constructor ?
how much classes are used in c++
What is this interview room ? Is it a class or an object.
c++ is a purely oop concept?
Can java compiler skips any statement during compilation time?
What is the difference between pass by value,pass by pointer,pass by reference in the catch block in the exception handling in c++
What are the fields of vtable
Why it is called runtime polymorphism?
design class for linked list and include constructor,destructor,insert option. node of form struct node { int data; struct node &ptr; }
what is virtual destructor