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

Precompilation ?

1 Answers   emc2,


who is the father of OPPS

4 Answers   Infosys, TCS,


What is new keyword in oops?

0 Answers  


what is virtual function?

3 Answers  


Write a program to find out the number of palindromes in a sentence.

1 Answers   TCS,


Why do we use class?

0 Answers  


what is the virtual function overhead, and what is it used for ? i hope i can get and appropriate answers, thanks a lot....

6 Answers  


Describe the difference between a Thread and a Process?

11 Answers   Siebel Systems,


WHY FUCTION OVERLOADING DOSENOT RETURN A RETEN TYPE

2 Answers  


can you give real time example for polymarphism

5 Answers   TCS,


create a c++ program that will ask 10 numbers and display their sum using array.

1 Answers  


what is the definition of incapsulation

2 Answers  


Categories