This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 21 Developer (Exam 1Z0-830) Java SE 17 Developer (Exam 1Z0-829) Programmer’s Guide and have Khalid Mughal and Vasily Strelnikov on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Just want to say thank you so much!!!

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I can't believe that I got 388/400 from my SCJD. The only section I got points off is the GUI.

Thanks everyone who leave a post / response on this forum. It's a big help. Thank you! Thank you!! Thank you!!!



General Con: 100 100
Documentation: 70 70
OOD: 30 30
GUI: 40 28
Locking: 80 80
Data Store: 40 40
Network Server 40 40
 
hangman
Posts: 220
Angular Framework Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Good Work, Macy! Congratulations.
 
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Awesome score Macy - congratulations
 
Andrew Monkhouse
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moved to Sun Certification Results forum.
 
Bartender
Posts: 3958
43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Macy , congratulations !!!
 
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Macy, great score, almost beat Ken Krebs (faq, 389/400).

By the way, could you tell me what you did to avoid the dredded 44/80 locking score ?

Regards,
Ronald Wouters
 
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Congratulations!! Macy You deserve an Applause
I would be glad if you could shed some light on Locking.
 
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
 
Macy
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I implemented a separate lock manager class that allows Insert Row Locking
(IRL) so that if two or more clients attempt to perform the sequence
lock-read/modify/write-unlock concurrently, both modification attempts
will be handled correctly. The lock manager class provides consistent
and concurrent access to data in a multi-user environment (RMI). Because
IRL is necessary only in remote mode, not in local mode, it makes better
sense to implement it as a separate lock manager class. Locks prevent
simultaneous updates of the same row of data. With a separate lock
manager, only one user at a time can update/create/delete a row of data.
So while one user is booking a subcontractor, another user cannot modify
the same row record. Without a good lock manager, users could overwrite
each other booking, giving the impression that someone can book the
same contractor to more than one person.

The row is locked by a given client cookie. Since I'm using RMI remote
access, the user will be assigned a random thread each time when it
accesses the server. The application is not guarantee on the same thread
so thread reference is not able to use. I created a client cookie class
to generate a cookie automatically when the user starts the client's
applications. The odds is 2 to the power 31 is nearly 0. It is impossible
for two clients assigned the same cookie. The responsibility for record
locking is kept in the DataLockManager. Always make sure the specific
record is lock free before locking to prevent dead lock issue. If the
specific is locked by another client, it will wait until the lock is
released.
 
Ranch Hand
Posts: 2023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Congratulations!!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic