Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • can you elaborate? I mean, to what extend is the lock by RandomAccess File better or safer than streams one Commented Sep 25, 2008 at 11:11
  • Link to simple example posted below Commented Aug 27, 2009 at 6:54
  • Paralife - sorry for the delay - just noticed your question. The locks from streams are going to be read locks (for input streams) and exclusive, full channel write locks (for output streams). My experience has been that the locks from RAF allow for more fine grained control (i.e. you can lock portions of a file). Commented Aug 27, 2009 at 21:39