Let’s say I’ve mapped a memory region [0, 1000] and now I have MappedByteBuffer. Can I read and write to this buffer from multiple threads at the same time without locking, assuming that each thread accesses different part of the buffer for exp. T1 [0, 500), T2 [500, 1000]? If the above is true, is it possible to determine whether
Tag: mappedbytebuffer
How to properly close MappedByteBuffer?
This is the code I’m running: Before pressing a key, I’m trying to delete the file manually in FAR Manager. But FAR says that the file is locked: Only after pressing a key, the application terminates and I can delete the file. What is wrong with my code? Answer Try this one.