Answer Posted / dayanand pujer (from gokak)
Threads commonly share the same memory space area, that’s
why they can share the resources. Threads commonly
communicate by sharing access to fields and the objects
reference fields refer to. This communication type is
extremely efficient, but makes two kinds of problems: thread
interference and memory consistency errors. By the
synchronization tool we can avoid this problem. In other
words, There is very critical situation where we want only
one thread at a time has to access a shared resources. For
example, suppose two people each have a checkbook for a
single account same as like two different threads are
accessing the same account data.
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What do you mean by a JVM?
Why bytecode is called bytecode?
What is generic class?
Which data type is class in java?
What do you mean by ternary operator in java?
What is scanner in java?
How do you compare arrays in java?
What are the methods of object class ?
How many tetrahedral voids are there in bcc?
what are Hostile Applets?
Why does my function print none?
Is empty in java?
Is cout buffered?
Why arraylist is used in java?
Write an algorithm program in java for the following question.. In a VLSI design techniques,they used rectangles to design circuits. EVery rectangle is to be placed according to x,y coordinates. Check whether or not two rectangles overlap each other. Here overlapping of rectangles is acceptable, if 1) one rectangle intersect with other. 2) one rectangle fully covers other. The time of algorithm should not exceed o(n logn).