Question about threads

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Question about threads

Eduardo Morras
Hello:
        We are going to implement p-threads in our embebbed OS and want to
know how SQLite uses them. Each database will have its own thread or
each part of SQLite (tokenizer, parser, btree...) have its own thread
or a mixture of both?

TIA

Reply | Threaded
Open this post in threaded view
|

Re: Question about threads

Martin Engelschalk
Hello Eduardo,

SQLite does not uses threads in itself. Every call to sqlite executes in
the context of the calling thread.
There is a restriction explained in
http://www.hwaci.com/sw/sqlite/faq.html#q8

I hope this helps.
Martin

Eduardo schrieb:

> Hello:
>     We are going to implement p-threads in our embebbed OS and want to
> know how SQLite uses them. Each database will have its own thread or
> each part of SQLite (tokenizer, parser, btree...) have its own thread
> or a mixture of both?
>
> TIA
>
Reply | Threaded
Open this post in threaded view
|

Re: Question about threads

Guillaume Fougnies
Hello,

A patch for this:
http://www.sqlite.org/cvstrac/tktview?tn=1417
We are using it since September on our systems without any
problem.

Bye.

Thu, Dec 22, 2005 at 10:04:31AM +0100: Martin Engelschalk wrote:

> Hello Eduardo,
>
> SQLite does not uses threads in itself. Every call to sqlite executes in
> the context of the calling thread.
> There is a restriction explained in
> http://www.hwaci.com/sw/sqlite/faq.html#q8
>
> I hope this helps.
> Martin
>
> Eduardo schrieb:
>
> >Hello:
> >    We are going to implement p-threads in our embebbed OS and want to
> >know how SQLite uses them. Each database will have its own thread or
> >each part of SQLite (tokenizer, parser, btree...) have its own thread
> >or a mixture of both?

--
Guillaume FOUGNIES
Eulerian Technologies