Re: JDBC gripe list

Поиск
Список
Период
Сортировка
От Vitalii Tymchyshyn
Тема Re: JDBC gripe list
Дата
Msg-id 4D91B571.7080208@gmail.com
обсуждение исходный текст
Ответ на Re: JDBC gripe list  (Craig Ringer <craig@postnewspapers.com.au>)
Список pgsql-jdbc
29.03.11 05:18, Craig Ringer написав(ла):
> On 03/27/2011 11:14 PM, Dave Cramer wrote:
>
> Timers can use one shared thread for all timers, either a generic
> timer thread provided by the JVM or (IMO better in this case) one
> dedicated to that timer pool. I think it'd be an ideal way to do it
> personally - the JDBC driver has several issues that'd be solvable by
> adding a single thread to use for various timers, etc.
>
> If there are concerns about the driver spawning a thread, it wouldn't
> be too tricky to make timer-requiring features conditional on a
> connection param, so if no connections that were going to use
> timer-based features were made, no thread would be spawned. Personally
> I don't think a single shared thread is worth worrying about, though.
> Have you *seen* the thread lists in a modern Java app? Threads are
> extremely low cost when idle, and are already heavily used throughout
> Java and the JVM.
BTW: May be a wrapper over Socket can be created that will allow
"hand-made" timers with socket channel selectors? In this case no new
thread will be required.

Best regards, Vitalii Tymchyshyn


В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: JDBC gripe list
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: JDBC gripe list