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

Which is not an object oriented programming language?

0 Answers  


How compiler selects(internally) required overridden function in inheritance?

2 Answers   CSC, Infinite Computer Solutions,


WILL I GET A guaranteed JOB AFTER DOING bsc()IT) and GNIIT from an NIIT CENTRE??

21 Answers   Biocon, MIT, NIIT,


me get an assignent n its question is this 1.creat a set as in math i.ea={1,2} 2.insert element in it3. delete element don,t repeat any element 4.union 5. intersection of two sets plz help me i always pray for u n send me at ayeshawzd@hotmail.com f u have c++ how to program 5th addition then it is the 10.9 question in 10th chapter exercise

1 Answers  


What is the renewal class?

0 Answers   Ebix, IBM,






The IT giant Tirnop has recently crossed a head count of 150000 and earnings of $7 billion. As one of the forerunners in the technology front, Tirnop continues to lead the way in products and services in India. At Tirnop, all programmers are equal in every respect. They receive identical salaries and also write code at the same rate. Suppose 14 such programmers take 14 minutes to write 14 lines of code in total. How long will in take 5 programmers to write 5 lines of code in total ?

6 Answers   TCS,


What is oops with example?

0 Answers  


#include <iostream> using namespace std; int main() { int a = 3; int c[5][5]; for (int x=0;x<5;x++) { for (int y=0;y<5;y++) { c[x][y] = x*y; } } cout << c[a][2]; }

1 Answers  


what is the new version of c++

1 Answers   Ignou, Pramata, Satyam,


In which Scenario you will go for Interface or Abstract Class?

1 Answers   InfoAxon Technologies,


What is a linked list?

7 Answers   IBM, Neural Info,


What does I oop mean?

0 Answers  


Categories