comp.lang.ada
 help / color / mirror / Atom feed
From: Maciej Sobczak <see.my.homepage@gmail.com>
Subject: Re: Threadpool with priority version 1.1 ...
Date: Fri, 26 Mar 2010 02:30:23 -0700 (PDT)
Date: 2010-03-26T02:30:23-07:00	[thread overview]
Message-ID: <7b059d0f-791b-4ac9-bf64-c50448ec99f7@b30g2000yqd.googlegroups.com> (raw)
In-Reply-To: 1rn39ttn5pon9$.11n683q5t6itu.dlg@40tude.net

On 26 Mar, 09:19, "Dmitry A. Kazakov" <mail...@dmitry-kazakov.de>
wrote:

> BTW, if this approach worked for an application, it should also do for the
> OS,

It is true, obtaining resources up-front requires more careful
analysis of the problem that is being solve and is not always
possible.
The difference between application and OS is in the amount of
knowledge about what the software will do and applications tend to
know more than OS in this aspect.
That is why it is more realistic to have applications allocating their
resources during initialization phase than to see that at the OS
level.

I'm not a big fan of programs that allocate and deallocate the same
resource repeatedly - this is an obvious candidate for caching and
object reuse, where the cost of allocation is amortized. Fortunately,
it is not even necessary for a user code to do that - think about a
caching memory allocator, there are analogies. And the language
standard does not prevent implementations from reusing physical
threads, if they are used as implementation foundations for tasks.

--
Maciej Sobczak * http://www.inspirel.com

YAMI4 - Messaging Solution for Distributed Systems
http://www.inspirel.com/yami4



  reply	other threads:[~2010-03-26  9:30 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <21e6697e-fd7c-4c5e-93dc-8d894449b5e6@f8g2000yqn.googlegroups.com>
     [not found] ` <ff3671a8-cf19-4cee-8b71-305bb6b1e9c1@l25g2000yqd.googlegroups.com>
     [not found]   ` <4ba9e189$0$6886$9b4e6d93@newsspool2.arcor-online.net>
     [not found]     ` <1id5xnuz0x892$.1odbic5ppiv07.dlg@40tude.net>
2010-03-24 14:55       ` Threadpool with priority version 1.1 Georg Bauhaus
2010-03-24 16:40         ` Warren
2010-03-24 18:27           ` Ada parallelism (was: Re: Threadpool with priority version 1.1 ...) Georg Bauhaus
2010-03-24 20:04             ` Warren
2010-03-25  8:24               ` Ada parallelism Dmitry A. Kazakov
2010-03-25 13:44                 ` Robert A Duff
2010-03-25 14:09                   ` Dmitry A. Kazakov
2010-03-24 21:46           ` Threadpool with priority version 1.1 Maciej Sobczak
2010-03-25 17:21             ` Warren
2010-03-25 17:30             ` Warren
2010-03-26  8:19               ` Dmitry A. Kazakov
2010-03-26  9:30                 ` Maciej Sobczak [this message]
2010-03-26 19:35                   ` Warren
2010-03-25  8:39         ` Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox