• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Passed ... :-) ....

 
Gustavo Dutra
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to thank everybody that make this

group so rich with a lot of steps and tips to

make the right decision in the project.

Yesterday I received my results and I have to thank the

group,

good luck for every body.

My result was:
The maximum number of points is 400, to pass you need a score of 320. Section Summary:
Section Max Actual Points Points
General Con: 100 100
Documentation: 70 70
OOD: 30 30
GUI: 40 40
Locking: 80 65
Data Store: 40 40
Network Server: 40 20
Total: 400 365

Gustavo Dutra Martins
 
Wei-ju Wu
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Congratulations, Gustavo !
 
Titus Barik
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Gustavo Dutra:

Locking: 80 65



Congratulations! What an odd score for locking. Could you describe your implementation of it?
[ May 18, 2005: Message edited by: Titus Barik ]
 
Peter Sin
Ranch Hand
Posts: 547
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
365/400 Congratz !!!
 
David Taun
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Congrats~
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11887
203
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Congratulations Gustavo
 
Weerawit Maneepongsawat
Ranch Hand
Posts: 203
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Congratulations
 
Gustavo Dutra
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Titus,

The lock is the real problem of the application,

I implemented the lock in two phases,

this happens because of the lock method, this

EVIL method only receive two arguments, the identification

of the client was not informed.... SO...... the only form

to make this work is to set an attribute value, but the attribute

is not thread safe, so you have to synchronize the first part

(the lock set) and then lock again (the lock object) to implement the

wait/notify protocol.... with this implementation you make the acquire lock

thread safe....

I did not receive 100% in the lock problem....

I think they want a lock manager or I made a mistache.... I don�t know...

well....

It doesn�t matter...

now is only celebration

I hope it helps you,

Gook luck


Gustavo
 
peter wooster
Ranch Hand
Posts: 1033
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Gustavo Dutra:
The lock is the real problem of the application,
...
I did not receive 100% in the lock problem....

I think they want a lock manager or I made a mistache.... I don�t know...

well....

It doesn�t matter...

now is only celebration

I hope it helps you,

Gook luck


Gustavo


Congratulations on a great score, especially the locking. I have come to think that the marking shares a lot in common with figure skating, its subjective and totally up to the judges.

Again congratulations

 
Muthaiah Ramanathan
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
so you have to synchronize the first part

(the lock set) and then lock again (the lock object) to implement the

wait/notify protocol.... with this implementation you make the acquire lock

thread safe....


I came across an example by Alain Troitter and in his locking example - there is a synchronized lock method. In the synchronized method he doesn't acquire the lock for the hashmap (the locked records) before adding elements in to that table or deleting it from the table. Is this the right way to do it?
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11887
203
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Muthaiah,

If the method itself is synchronized, and there is only one instance of the class, then only one thread can ever be adding lock details to the collection. So this will work.

I don't believe it is the best way of handling this though - I believe you should be limiting your synchronized code to the smallest possible block, and synchronizing on an object that makes sense for the synchronization (so the Collection for locking and the RandomAccessFile for file I/O (or similar)).

Regards, Andrew
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11887
203
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have moved this post to the Sun Certification Results forum. You can now find it here.

Regards, Andrew
 
S.L.Narayanan
Ranch Hand
Posts: 431
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Congratulations!!!


Well Done!!!
 
Tong Chen
Ranch Hand
Posts: 1011
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
congratulations and enjoy!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic