How do you write zero copy in java? What are the main differences

loyalflow picture loyalflow · May 11, 2012 · Viewed 7.9k times · Source

I was reading about how you can use the java nio library to take advantage of file transfer/buffering at the O/S level which is called 'zero copy'.

What are the differences in how you create/write to files then? Are there any drawbacks to using zero-copy?

Answer

miks picture miks · May 11, 2012

zero copy means that your program will not transfer the data from the kernel space to the user space and so on. this is faster nice article can be found here: http://www.ibm.com/developerworks/library/j-zerocopy/