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

Where You Can Use Interface in your Project

0 Answers   KPIT,


Why is destructor used?

0 Answers  


any one please tell me the purpose of operator overloading

0 Answers   Amazon,


What are the OOPS concepts?

106 Answers   A1 Technology, Bajaj, CTS, EDS, HP, Infosys, Intel, Microsoft, MNC, Persistent, PlanetSoft, ProConstructor, TCS, Virtusa, Wipro, YSoft Solutions,


What is the difference between encapsulation and polymorphism?

0 Answers  






Write a program to accept a number and to print numbers in pyramid format? for eg:for a no. 5 1 212 32123 4321234 543212345

7 Answers  


pointers are support in C#? if yes then how to use it?

8 Answers   Softvision Solution,


Give two or more real cenario of virtual function and vertual object

0 Answers   TCS,


What is class and example?

0 Answers  


WHY FUCTION OVERLOADING DOSENOT RETURN A RETEN TYPE

2 Answers  


What is basic concept of oop?

0 Answers  


State what is encapsulation and friend function?

0 Answers   BirlaSoft,


Categories