Subject RE: [firebird-support] Embedded for MultiThread
Author Alan McDonald
> > he's asking if you can have a multi threaded app use the embedded
> driver.
> > You can create as many threads with as many connections (one per
> thread) as
> > you like with the one single loading of the embedded driver.
> > Maybe that's clearer.
>
> That's more like what I thought I knew. :-)
>
> So is this correct:
>
> 1. Embedded allows only one client instance (= "one single loading of
> the embedded driver") to connect to the server, but it can have any
> number of connections.
>
> 2. Connections should not be shared between threads, unless each use is
> protected with a critical section.
>
> Thank you,
> Kjell

there may be other application architecture reasons for using critical
sections but this is not driven by the embedded server.
Alan