comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Blocking syscalls in Tasks
Date: Mon, 29 Sep 2008 21:35:52 -0500
Date: 2008-09-29T21:35:52-05:00	[thread overview]
Message-ID: <gbs3bb$ejt$1@jacob-sparre.dk> (raw)
In-Reply-To: eBUDk.245076$102.150485@bgtnsc05-news.ops.worldnet.att.net

Probably because for Janus/Ada, pretty much everything you said about the 
mapping of Ada tasks to threads is wrong.

Janus/Ada still maps all tasks to one Windows thread. That was originally 
supposed to be a temporary Q&D implementation, but for a variety of reasons 
it never got replaced. Most obviously: other things needed work more 
urgently than the tasking, which is quite efficient. Depending on your 
circumstances, it might actually be faster than a threaded implementation. 
(Our ultimate goal is to have both.)

In any case, the point is that Ada doesn't say anything about the mapping of 
tasks to OS threads: you simply have to ask your vendor. And, of course 
blocking of system calls follows from that.

                     Randy.


"anon" <anon@anon.org> wrote in message 
news:eBUDk.245076$102.150485@bgtnsc05-news.ops.worldnet.att.net...
> Each and every time you speak you CUT the post down Ada!
> WHY are you trying to KILL Ada!  And I say nothing that is
> confusing except to those who hate Ada.
>
> An event thread is a blocked thread. See Microsoft Windows Documentation!
> LEARN before speaking!
>
> In <q7GdnQCVgLL7XkLVnZ2dnUVZ_h-dnZ2d@comcast.com>, tmoran@acm.org writes:
>>> Except for DOS in todays OS all Ada partitions are executed by native OS
>>> threads.
>>  This is confusing.  An Ada partition is not at all the same as an Ada
>>task, and there's no guarantee that an Ada task maps 1-1 to an OS thread.
>>
>>> Now, in a GUI system, the RC_TASK (resource task) is blocked until a 
>>> input
>>> device such as the mouse or keyboard actives the thread.
>>  MS Windows tasks do not block waiting for mouse or keyboard.  Windows
>>"event based" GUI design was based on a single thread and a polling loop.
> 





  reply	other threads:[~2008-09-30  2:35 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-27 17:26 Blocking syscalls in Tasks schwering
2008-09-27 18:40 ` Peter C. Chapin
2008-09-27 20:11   ` schwering
2008-09-27 23:14     ` Peter C. Chapin
2008-09-27 18:58 ` Hibou57 (Yannick Duchêne)
2008-09-27 20:02   ` schwering
2008-09-27 20:16     ` Ed Falis
2008-09-27 21:54 ` Maciej Sobczak
2008-09-28  7:55   ` sjw
2008-09-28  3:16 ` anon
2008-09-28 17:48   ` tmoran
2008-09-28 23:39     ` anon
2008-09-30  2:35       ` Randy Brukardt [this message]
2008-09-30 10:06         ` anon
2008-09-30 11:01           ` Georg Bauhaus
2008-10-01  2:18             ` anon
2008-09-30 18:06           ` Adam Beneschan
2008-09-30 18:10             ` Ludovic Brenta
2008-09-30 20:09               ` Jeffrey R. Carter
2008-10-06 17:12           ` Ada compilers supporting Ada 2005 (was: Blocking syscalls in Tasks) Georg Bauhaus
2008-10-07 11:51             ` Colin Paul Gloster
2008-10-07 14:31               ` Britt Snodgrass
2008-10-07 15:39                 ` Colin Paul Gloster
2008-10-07 16:38                   ` Adam Beneschan
replies disabled

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