• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

My 2 pence regarding marking of NX

 
Tony Collins
Ranch Hand
Posts: 435
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From what I've seen from people that have passed SCJD, the ones that got good scores where those that had simple designs ?
No Lock Manager, No flashy GUI and a simple Locking Mechanism using FileChannels.
Can anyone substantiate that ?
If I was CEO of SUN and my top product that was known to be slow on IO had an improved API that vastly increased it's speed on IO, I'd want developers to be using it.
Any thoughts ?
Tony
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
a simple Locking Mechanism using FileChannels.
Were these intended to be two separate items? A simple locking mechanism, and using FileChannels? My own locking mechanism has nothing to do with the FileChannel; that's a separate thing entirely. Maybe others are doing something else entirely though. I know that Some people have talked about using FileLocks, but I think most have rejected that idea because it's not reliably supported across plaforms. Max's book takes this view, and I agree.
I agree that Sun would probably like to see their new java.nio classes get used, and I used FileChannel in part justbecause I wanted to learn more how it works. But if Sun really wanted to promote it for Dev Cert, they could have tweaked the assignment more in that direction. E.g. by more strongly stating performance as one of the goals. I think that people who just use RandomAccessFile here will be just fine, though I encourage them to try FileChannel anyway.
 
Billy Tsai
Ranch Hand
Posts: 1304
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I used randomAccessFile, and some of the alogrithms of my methods have rather big running time, however I think the speed of the modern day hard disk and computer will make it non problematic.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic