wood burning stoves 2.0*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes My Test Code for DB Locking, etc. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "My Test Code for DB Locking, etc." Watch "My Test Code for DB Locking, etc." New topic
Author

My Test Code for DB Locking, etc.

Robert Konigsberg
Ranch Hand

Joined: Jun 23, 2004
Posts: 172
Here is the code I used to test my DB Locking. Give it a look-see. If you use it, please let me know! Most important, let me know if you find it
  • helpful/unhelpful
  • correct/incorrect
  • complete/incomplete
  • right/wrong!!!


  • RK



    SCJP 1.4 (91%)<br />SCJD 1.4 (376/400, 94%)
    Matt Pryor
    Greenhorn

    Joined: Jul 21, 2004
    Posts: 2
    Looks good except you may want to have a few more Threads concurrently attempting to lock / unlock records. It wasn't until I had 10,000 Threads fired off that I noticed that some of them were never returning from the wait state!


    ===========<br /> <br />SCJP (89%)<br />SCJD Pending
    Robert Konigsberg
    Ranch Hand

    Joined: Jun 23, 2004
    Posts: 172
    That's the kind of feedback I'm talking about!!

    Well everyone, make it a loop. I leave the details as an exercise.

    Hey, thanks.
    [ July 21, 2004: Message edited by: Robert Konigsberg ]
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: My Test Code for DB Locking, etc.