Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #33976
| From | Marcel Mueller <news.5.maazl@spamgourmet.org> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Troubles with informix jdbc driver ... |
| Date | 2016-03-15 21:57 +0100 |
| Organization | MB-NET.NET for Open-News-Network e.V. |
| Message-ID | <nc9svp$2m7$1@gwaiyur.mb-net.net> (permalink) |
| References | <slrnnedgqn.456.avl@login.logic.tuwien.ac.at> <nc7d8t$oki$1@gioia.aioe.org> |
On 14.03.16 23.16, Arne Vajhøj wrote:
> That would be easy to test by just putting:
>
> synchronized(DriverManagager.class) {
> }
>
> around all the getConnection calls.
>
> If that removes the problem, then I would say that it is clear that
> the problem is in the driver code.
Not necessarily. The change may significantly reduce parallelism and
this may hide a race condition.
Some race-conditions are that unlikely to happen that it may take
billions of years to get even one fault. I remember that I have written
a high efficiency Java like string library for C++ some years ago. It
used a trick to steal 2 lower bits from the (32 bit) string pointer for
a temporary reference counter (for strong thread safety). I.e. no more
than 3 threads could use this field concurrently. However, with test
cases I failed to get even 3 threads at the same time into this short
code block (checked with an assertion). Although I had hundreds of
parallel threads which did nothing else than accessing a single (lock
free) string object.
Marcel
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Troubles with informix jdbc driver ... Andreas Leitgeb <avl@logic.at> - 2016-03-14 13:54 +0000
Re: Troubles with informix jdbc driver ... Marcel Mueller <news.5.maazl@spamgourmet.org> - 2016-03-14 21:23 +0100
Re: Troubles with informix jdbc driver ... Andreas Leitgeb <avl@logic.at> - 2016-03-14 21:30 +0000
Re: Troubles with informix jdbc driver ... Arne Vajhøj <arne@vajhoej.dk> - 2016-03-14 18:16 -0400
Re: Troubles with informix jdbc driver ... Marcel Mueller <news.5.maazl@spamgourmet.org> - 2016-03-15 21:57 +0100
Re: Troubles with informix jdbc driver ... Arne Vajhøj <arne@vajhoej.dk> - 2016-03-15 21:18 -0400
Re: Troubles with informix jdbc driver ... Andreas Leitgeb <avl@logic.at> - 2016-03-15 22:25 +0000
Re: Troubles with informix jdbc driver ... Arne Vajhøj <arne@vajhoej.dk> - 2016-03-15 21:25 -0400
Re: Troubles with informix jdbc driver ... Kevin McMurtrie <mcmurtrie@pixelmemory.us> - 2016-03-14 21:26 -0700
Re: Troubles with informix jdbc driver ... Andreas Leitgeb <avl@logic.at> - 2016-03-15 22:09 +0000
Re: Troubles with informix jdbc driver ... Andreas Leitgeb <avl@logic.at> - 2016-03-16 21:37 +0000
Re: Troubles with informix jdbc driver ... Kevin McMurtrie <mcmurtrie@pixelmemory.us> - 2016-03-16 22:36 -0700
Re: Troubles with informix jdbc driver ... -- workaround found Andreas Leitgeb <avl@logic.at> - 2016-03-17 17:23 +0000
Re: Troubles with informix jdbc driver ... -- workaround found Andreas Leitgeb <avl@logic.at> - 2016-03-18 11:13 +0000
csiph-web