Page 1 of 1

About Question enthuware.ocpjp.v7.2.1343 :

Posted: Tue Nov 12, 2013 11:33 am
by muttley
Hi, I think that in this question have a little mistake in the explanation.
instead of:
"Second thread acquires the lock of sb2 and appends Y to sb2."
could be:
"Second thread acquires the lock of sb2 and appends Y to sb1."
What do you think?

thanks in advance.

Re: About Question enthuware.ocpjp.v7.2.1343 :

Posted: Wed Nov 13, 2013 9:08 am
by admin
Actually, in the second thread, sb1.append("Y"); should actually be sb2.append("Y"); and sb2.append("X"); should be sb1.append("X");

This has now been fixed.

thank you for your feedback!
Paul.