• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Whick locks ?

 
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic