Amit Ghorpade wrote:IMHO I think Ulf was trying to take our attention at the NotACodeMill policy sprinkled with his own way of humor.
In response to him being "harsh", I would suggest you read what title is displayed below his name and the FAQ on SaloonTitles.
Ulf Dittmer wrote:So you want us to do your assignment for you? Will we get the credit for it as well? Or were you thinking of paying us?
gurpeet singh wrote:here we are creating two threads and we are passing two different runnable targets to these two threads. so even though there is synchronized keyword in the method move() but the two threads are acquiring locks on two different chess objects. so two threads will be running concurrently. keep in mind that when a thread enters a synchronized method, it will acquire lock on the object currently running the method i.e. this. so in two thread both threads are getting locks on different chess objects and hence the output.
Ankit Garg wrote:Synchronization and Serialization are two different concepts, don't confuse them. Serialization is not on the exam but synchronization is...
At line 16, "ma" contains 6,4 owing to the assignment in the previous step