What is synchronization? How it can be achieved?
Answers were Sorted based on User's Feedback
Answer / ravikiran(aptech mumbai)
synchronization is the process of allowing only one thread
at a time.It's been achieved by marking the method as
synchronized or locking a particular portion of code
Is This Answer Correct ? | 7 Yes | 5 No |
Answer / sainaveen
Synchronization is a mechanism used to control multiple
threads from accessing shared resources, if multiple
threads access shared resources there might be a chance for
one thread to change the shared values of another thread
leading to errors
Is This Answer Correct ? | 6 Yes | 8 No |
What is size_t?
How to find the index of the largest number in an arraylist java?
What is the difference between the file and randomaccessfile classes?
what is Vector class?
How many ways can an argument be passed to a subroutine and explain them?
Hi, This is ravi i have a question like this i have string "UNDERSTAND" now i want to count the letters how many times it occures.i.e from the above string the out put should be like this U-1,N-2,D-2,E-1,R-1,S-1,T-1,A-1. how can i achieve this Thnaks in advance for your response ..
What is the maximum size of byte array in java?
Which is easier netbeans or eclipse?
What is string builder?
What are java threads?
If there is no implementation of MARKER INTERFACE in java. Then how compiler come to know about specification.
How can we achieve thread safety in java?