This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes URLyBird 1.3.2 : Locking mechanism Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "URLyBird 1.3.2 : Locking mechanism" Watch "URLyBird 1.3.2 : Locking mechanism" New topic

URLyBird 1.3.2 : Locking mechanism

Jeffry Kristianto Yanuar
Ranch Hand

Joined: Oct 01, 2007
Posts: 759
Hi guys, I have already finished my assignment, before submitting the assignment, I have to test my assignment. The most important test is about the locking mechanism.

How you guys make sure that there isn't a way to break the lock ?

I implemented the locking mechanism similar with the Denny's DVD in Andrew's book.

I tested by spawning 100 different client's that calling method read(int recNo) with the different recNo at the same time. Do you test all the methods in DBMain interface ? I think I must test all the methods also to make sure that my socket protocol is correct.


Jeffry Kristianto Yanuar
SCJP 5.0
SCJD (Working on UrlyBird 1.3.2)
rocket mass heater kickstarter
subject: URLyBird 1.3.2 : Locking mechanism