• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

memory mapped files

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If it is OS dependent, then yes it is NOT for this assignment.
Mark
 
town drunk
( and author)
Posts: 4118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 619
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks y'all
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic