Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Whick locks ?  RSS feed

 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

For the SCJD exam, which locking mechanism is preferred ? The plain old locks or the JDK 5 locking mechanisms ?

Thanks in advance ...
 
rohan tiwari
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am currently doing SCJD(URLyBird 1.1.2) . I have used JDK 5 locking mechanism(Reentrant locks with conditional wait) simply since they are simple and provide good concurrency with signal and wait .

I do not know whether they are preferred or not , but If one is able to defend his or hers decision in choices.txt all would be fine.
[ January 26, 2008: Message edited by: rohan tiwari ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!