From: "Hibou57 (Yannick Duchêne)" <yannick_duchene@yahoo.fr>
Subject: Re: Start a Windows process and get its text output
Date: Sun, 7 Feb 2010 12:35:17 -0800 (PST)
Date: 2010-02-07T12:35:17-08:00 [thread overview]
Message-ID: <ed20ce5b-987b-400c-b5a8-3d1f7c41d73d@b2g2000yqi.googlegroups.com> (raw)
In-Reply-To: f9bb0878-0c89-4590-bf82-e6597459214a@d27g2000yqn.googlegroups.com
On 7 fév, 20:24, Hibou57 (Yannick Duchêne) <yannick_duch...@yahoo.fr>
wrote:
> I was wondering about the cost of threads on Windows, as GNAT create
> Ada task as Windows thread (I suppose its the same for Janus and
> others, I hope to be honest).
> [...]
>
> The sole words about it in the MS reference says :
For any interested parties, I've found an answer which seems
reasonable here :
http://stackoverflow.com/questions/304752/how-to-estimate-the-thread-context-switching-overhead
Two interesting quotes are:
> Oh, and I remember an application running on Windows CE 4.X, where
> we also have four threads with intensive switching at times, and
> never ran into performance issues.
and
> Output
> Number of thread switches in about one second was 108406
> Over 100'000 is not too bad and that even though we have locking and
> conditional waits. I'd guess without all this stuff at least twice
> as many thread switches were possible a second.
Threads does not cost so much after all (keep in mind this was on
architecture with support for Windows, this is Windows specific).
next prev parent reply other threads:[~2010-02-07 20:35 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-06 17:39 Start a Windows process and get its text output Gautier write-only
2010-02-06 18:12 ` Hibou57 (Yannick Duchêne)
2010-02-06 18:23 ` Pascal Obry
2010-02-06 19:21 ` Gautier write-only
2010-02-06 19:42 ` Jeffrey R. Carter
2010-02-06 21:01 ` Dmitry A. Kazakov
2010-02-07 17:54 ` Vadim Godunko
2010-02-07 19:24 ` Hibou57 (Yannick Duchêne)
2010-02-07 19:36 ` Hibou57 (Yannick Duchêne)
2010-02-07 20:35 ` Hibou57 (Yannick Duchêne) [this message]
2010-02-07 21:36 ` 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