From: | thomas at tada(dot)se (Thomas Hallgren) |
---|---|
To: | |
Subject: | [Pljava-dev] doubtful PL/Java's activity |
Date: | 2013-12-20 06:13:50 |
Message-ID: | 52B3E01E.5000008@tada.se |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pljava-dev |
On 2013-12-20 05:51, Taniguchi, Yasunori wrote:
> Thank you, Mr. Thomas,
>
> Sorry for my late response.
>
>> The backend is single threaded (each connection runs in it's own process and it's own JVM) so there will never be two functions executing simultanously.
> Yes, I understand.
> But, multi thread applications (unless using concurrent JDBC call) can run in JavaVM even if postgres backend is single threaded, I think.
Each connection that a multi threaded client application opens is attached to one single threaded backend process and
hence, each connection will run in its own JVM. These connections cannot access the same global data since they live in
different process spaces.
- thomas
From | Date | Subject | |
---|---|---|---|
Next Message | Taniguchi, Yasunori | 2013-12-20 06:34:59 | [Pljava-dev] doubtful PL/Java's activity |
postgresql : [토토 | Taniguchi, Yasunori | 2013-12-20 04:51:28 | [Pljava-dev] doubtful PL/Java's activity |