You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by David Jordan <Da...@sas.com> on 2011/09/23 15:00:31 UTC
reader/writers, JVMs and threads
The documentation states that TDB can support either multiple readers or a single writer. I am assuming this is respect to JVMs (distinct processes). How are threads handled? Does TDB support multi-threaded applications? If so, can one have multiple threads interacting with TDB, using different Model objects?
David Jordan
Software Developer
SAS Institute Inc.
Health & Life Sciences, Research & Development
Bldg R ▪ Office 4467
600 Research Drive ▪ Cary, NC 27513
Tel: 919 531 1233 ▪ david.jordan@sas.com<ma...@sas.com>
www.sas.com<http://www.sas.com>
SAS® … THE POWER TO KNOW®
Re: reader/writers, JVMs and threads
Posted by Andy Seaborne <an...@apache.org>.
On 23/09/11 14:00, David Jordan wrote:
> The documentation states that TDB can support either multiple readers
> or a single writer. I am assuming this is respect to JVMs (distinct
> processes). How are threads handled? Does TDB support multi-threaded
> applications? If so, can one have multiple threads interacting with
> TDB, using different Model objects?
Only one JVM can access the database - if you wanted shared access
between JVMs, then consider running Fuseki, then you will have a shared
database server.
Within one JVM, either multiple readers or a single writer can be active
at anyone time per dataset. There is a lock on the dataset object to help.
Different Models is fine but the rules for MRSW apply. In TDB, a Model
is just a view of the dataset - MRSW applies across the whole dataset.
Transactions are currently just being finished up; the released TDB does
not have transaction support. TxTDB (will be TDB 0.9 if all goes well)
is available as a development build.
Andy