From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,33e2ff06dc7f500c,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!b14g2000yqd.googlegroups.com!not-for-mail From: =?ISO-8859-1?Q?Hibou57_=28Yannick_Duch=EAne=29?= Newsgroups: comp.lang.ada Subject: Maping of Ada tasks on the plateforme OS threads model Date: Sat, 27 Jun 2009 17:35:14 -0700 (PDT) Organization: http://groups.google.com Message-ID: <31491d36-18ec-4da4-b1a6-1914d0867492@b14g2000yqd.googlegroups.com> NNTP-Posting-Host: 86.75.149.55 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1246149315 28930 127.0.0.1 (28 Jun 2009 00:35:15 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 28 Jun 2009 00:35:15 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: b14g2000yqd.googlegroups.com; posting-host=86.75.149.55; posting-account=vrfdLAoAAAAauX_3XwyXEwXCWN3A1l8D User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; fr),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:6678 Date: 2009-06-27T17:35:14-07:00 List-Id: Hello every body out there, As I will have to port a C application (previously started with C, to have a kind of quick mock up and make direct use of some OS API functions) which importantly relies on threads. As things are 1) going fine with this thread model and as 2) the application gonna be more complex than it is actually, I was thinking about 1) keep the same low level thread model 2) while using Ada for further developpement to have a cleaner and more readable design. Happily, it seems most of Ada compiler designers are wise enought to try to map Ada task to the underlying OS thread model. I've found two starting points about it : http://gcc.gnu.org/onlinedocs/gcc-3.3.6/gnat_rm/Mapping-Ada-Tasks-onto-the-Underlying-Kernel-Threads.html and http://www.rrsoftware.com/html/prodinf/triadapaper/triada.mainsrc.html The RRSoftware page makes reference to Win32s which is not use any more, so I apologize for this rather old document. I've found another page about Janus Ada tasking and Windows threads, but after an hour searching it back, I'm still not able to get it back. Well, there is no real trouble I want to submit, I think this gonna be Ok for me. I'm just opening this thread beceause I was thinking this is an intereresting subject which may be of interest for people interested in porting some applications from this very widely used and famous C to Ada, as well as to people aware of efficiency matters (a big spot with threads). Peoples having any experiences to share about it are welcome :) Pleased to read you soon Y.