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 are the states of thread in java?
What an i/o filter?
What is a linkedhashmap java?
What are the escape sequences in java?
What are the differences between this and super keyword?
what is real-time example of runtime polymorphism and compile time polymorphism
which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?
What is a numeric string?
Can we execute a program without main?
Which variables are stored in heap?
What is %02d?
What is Mutex (Mutual Exclusion Object) ?