Should you protect the global data in threads? Why or why
not?
Answer Posted / 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 View All Answers
What is encapsulation in oops?
Can an interface inherit a class?
What is advantage of inheritance?
write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.
What is difference between oop and pop?
Why do we use class?
Where You Can Use Interface in your Project
What are oops functions?
to find out the minimum of two integer number of two different classes using friend function
What is the fundamental idea of oop?
What are functions in oop?
What is data binding in oops?
Why is encapsulation used?
Why we use classes in oop?
• What are the desirable attributes for memory managment?