Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

memory mapped files

 
Sam Segal
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
i am seraching for discussion on using memory mapped file for
reads, write, creates. will the new MemoryMappedBuffer cause for automatic failure because of it being operating system dependent as well as filesystem?
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If it is OS dependent, then yes it is NOT for this assignment.
Mark
 
Max Habibi
town drunk
( and author)
Sheriff
Posts: 4118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sam,
I talk about this in some detail in my book, but the short answer is this.
It's OS dependent, don't do it.
All best,
M
[ February 21, 2004: Message edited by: Max Habibi ]
 
Jay Bromley
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sam,
Not only is MappedByteBuffer's implementation OS-dependent, but it seems that Sun has recently banned the use of NIO for the assignments that it is distributing (there was a thread on this not more than a few days ago) so this would make the use of java.nio.MappedByteBuffer illegal.
Regards,
jb
 
George Marinkovich
Ranch Hand
Posts: 619
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jay,
Originally posted by Jay Bromley:
Not only is MappedByteBuffer's implementation OS-dependent, but it seems that Sun has recently banned the use of NIO for the assignments that it is distributing (there was a thread on this not more than a few days ago) so this would make the use of java.nio.MappedByteBuffer illegal.

The thread you mentioned is here:
Topic: We are allowed to use NIO
Hi Sam,
It turns out that NIO is allowed unless your assignment instructions explicitly prohibit it. It's certainly not required for the project and you might infer that since Sun is prohibiting it's use in some new project assignments that it's probably not recommended for the SCJD project. I concur with the previous responses. You might be implementing a solution that is much more complex than it needs to be.
[ February 21, 2004: Message edited by: George Marinkovich ]
 
Sam Segal
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks y'all
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic