Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

diff between Abstract class Interfaces?

4 Answers  


Why polymorphism is used in oops?

0 Answers  


Name an advantage of array over linked list?

24 Answers   GML, IBM, Software Solutions,


What is the main difference between C++ and Java

11 Answers   TCS,


Can we have a private virtual method ?

8 Answers   Ness Technologies,


What is polymorphism give a real life example?

0 Answers  


What is ambiguity in inheritance?

0 Answers  


I am developing a payroll system mini project.I used file concept in program for reading and writing.When the program is reloading into the memory that is if i execute next time the file was cleaned and adding data from the starting this is my problem.I want to strore the previous data and if i want to add any record that should be next of previous data.Please help me.

0 Answers  


how to swap the variables without using temp and operators

1 Answers  


What is the difference between a constructor and a destructor?

0 Answers  


WAP to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

1 Answers  


What are objects in oop?

0 Answers  


Categories