Should you protect the global data in threads? Why or why
not?

Answers were Sorted based on User's Feedback



Should you protect the global data in threads? Why or why not? ..

Answer / srini

Global datas needs to be protected in threads since threads
share address space with each other.

Is This Answer Correct ?    10 Yes 1 No

Should you protect the global data in threads? Why or why not? ..

Answer / 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

More OOPS Interview Questions

what is the advantage in software? what is the difference between the software developer and Engineer

1 Answers  


WHAT IS THE ACTUAL DEFINATION OF OBJECT AND THE CLASS IN ONE SINGLE LINE WHICH THE INTERVIEWER WANT TO LISTEN.

11 Answers  


i^=j; j^=i; i^=j; value of i,j

1 Answers  


whats the difference between c and c++

7 Answers   Syntel,


what are the characteristics of oops?

7 Answers   NIIT,






What do you mean by overloading?

0 Answers  


Can a destructor be called directly?

0 Answers  


Is this job good for future? can do this job post grduate student?

0 Answers  


What is the concept of object oriented program?

6 Answers  


Can we have a private constructor ?

12 Answers   HSBC, Ness Technologies, TCS, Wipro,


what is code for call by value and call by reference?

1 Answers  


What is the main purpose of inheritance law?

0 Answers  


Categories