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

What is the difference between encapsulation and polymorphism?

0 Answers  


Why do we need oop?

0 Answers  


what is the difference between class to class type conversion and copy constructor ?

2 Answers  


how much classes are used in c++

5 Answers  


What is this interview room ? Is it a class or an object.

3 Answers   CybAge, NSN, Wipro,


c++ is a purely oop concept?

3 Answers   Google, TCS,


Can java compiler skips any statement during compilation time?

0 Answers  


What is the difference between pass by value,pass by pointer,pass by reference in the catch block in the exception handling in c++

1 Answers   TCS,


What are the fields of vtable

1 Answers   Mphasis,


Why it is called runtime polymorphism?

0 Answers  


design class for linked list and include constructor,destructor,insert option. node of form struct node { int data; struct node &ptr; }

0 Answers  


what is virtual destructor

7 Answers   L&T, TCS,


Categories