Hi Max,
First many thanx for your comments!
[Max]It looks good, but I'd like to make a few suggestions/observation.
1. synchronize your write method. It's only the reads that are ok to leave unsynchronized.
2. close yout FileChannel when you're done with it, and null it out.
3. Nice, liberal use of comments. I like that
1. It is private write method. It is used by main public method, which is synchronized on the map.
2. Max, as told: I will follow your idea to use FileChannel, but I will synchronize read explicitely and I will use shared FileChannel object, which I will not open and close every time. That means I guess I should not close it here. Considering what I have told here, should call force() method?
3) Thanx for the compliment!
Sorry for stupid questions, I am just trying to drive the car after reading instructions, but having no practise with the goal to get a driver license
Vlad