On 11/11/12 13:37, Dick & Hannah wrote:
Model and TDB are thread safe if coded appropriately. It's a SWMR per
thread design. So if you open a dataset twice in two threads and code
appropriately i.e. Begin/Commit/Rollback Jena will behave. Our system
is massively parallel and the Jena part has never had issues. We
regularly have the dataset open tens of times to handle concurrency.
Hannah
Yes - Jena is multiple-reader or single-writer unless otherwise stated.
TDB with transactions are multiple-reader and single-writer (if more
than one writer, it's queued). A reader can start at any time (and is
not blocked internally) and sees the state of the database from the last
writer to commit.
Andy
On 11 Nov 2012, at 11:01, Uri Shani <[email protected]> wrote:
Is Jena thread-safe? What would be the limitations on that as far
as plain models, built in reasoners or any arbitrary associated
reasoners? Purpose would be to break the single thread barrier when
working with Jena models. Thanks, - Uri Shani
Regards,
Uri Shani, PhD Research Staff Member SPRINT(lead), DANSE (tools-net
lead) Projects Phone: 972-4-829-6282 | Phone: 972-4-8296228 |
Mobile: 972-54-697-6282 E-mail: [email protected] Find me on:
Haifa University, Mount Carmel Haifa, HA 31905 Israel