• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NX: Concurrent writes to different records

 
Perry Board
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone have an argument for preventing concurrent writes to the database as long as they are different records?
In other words, record locking prevents two clients from modifying the same record, but there would be nothing wrong with having two clients (threads), each using their own RandomAccessFile object to modify different parts of the same file since all records are fixed length.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic