Menu

Thread safe

Help
Vun Loon
2005-07-26
2013-05-01
  • Vun Loon

    Vun Loon - 2005-07-26

    Hi. Would like to find out more about thread safe problem. If multiple client is accessing to the same mbox file. Will it encounter any concurrency issue? Can I do a write and read to the mstor file at the same time using multiple threads?

     
    • Ben Fortuna

      Ben Fortuna - 2005-07-26

      Hi Vun,

      Whenever you read/write to an MboxFile you are actually reading/writing to an underlying RandomAccessFile instance (if java.nio is employed this is via a FileChannel). So concurrency is limited to what you are able to do using standard Java I/O (nio).

      If there is a need for better concurrency support (synchronisation, etc.) I am happy to look into it. Just let me know what kind of problem you are trying to solve.

      regards,
      ben

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.