Subject | Re: [Firebird-Java] Some questions about embedded, Linux and Classic Server |
---|---|
Author | Nikolay Ivanchev |
Post date | 2003-11-07T07:53:04Z |
Hello Nickolay
You are completely right.
If i open 100 conenctions to e embedded server which works in one thread,
everything is OK.
But if I run 100 threads which opens 1 connection to database, they crash,
no mather that i sinchronize getConnection method.
I did everthing right, I am sure. Just fbembedded.so is not thread safe.
Which means - embdedded under Linux is not thread safe.
But since my apps are GUI's without threads, this is OK for me.
Sorry I cannot help wich patches to SS embedded under Linux. I am not C
developer.
Nikolay
You are completely right.
If i open 100 conenctions to e embedded server which works in one thread,
everything is OK.
But if I run 100 threads which opens 1 connection to database, they crash,
no mather that i sinchronize getConnection method.
I did everthing right, I am sure. Just fbembedded.so is not thread safe.
Which means - embdedded under Linux is not thread safe.
But since my apps are GUI's without threads, this is OK for me.
Sorry I cannot help wich patches to SS embedded under Linux. I am not C
developer.
Nikolay
> Hello, Nikolay !single
>
>
> >Since tests pass on linux on embedded target and they include tests on
> Pooling,
> >doesnt' this mean that CS embedded can open several Connection's to
> database?via
>
> It can. But noone tested CS embedded version with threads.
>
> Generally, I'm 99% sure there should be problems with libfbembed.so used
> JNI.
> libfbclient.so is thread-safe clien library version.
>
> It is possible to build embedded SS engine on Posix (just like fbembed.dll
> on Windows),
> but it not done now. Patches are welcome, as always ! ;)
>
> Nickolay Samofatov
>
>
>
>
> To unsubscribe from this group, send an email to:
> Firebird-Java-unsubscribe@yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>