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.
About Question enthuware.ocpjp.v7.2.1343 :
Moderators: Site Manager, fjwalraven
-
- Posts: 19
- Joined: Thu Feb 28, 2013 9:47 am
- Contact:
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1343 :
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.
This has now been fixed.
thank you for your feedback!
Paul.
Who is online
Users browsing this forum: No registered users and 1 guest