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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,a6c65cbc407987fe X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-14 05:47:38 PST Message-ID: <3DD3A9EA.E3F9FD0E@sympatico.ca> From: David Marceau X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.17-10mdksmp i686) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: dynamic multithreading References: Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Date: Thu, 14 Nov 2002 08:49:30 -0500 NNTP-Posting-Host: 65.92.163.208 X-Complaints-To: abuse@sympatico.ca X-Trace: news20.bellglobal.com 1037281501 65.92.163.208 (Thu, 14 Nov 2002 08:45:01 EST) NNTP-Posting-Date: Thu, 14 Nov 2002 08:45:01 EST Organization: Bell Sympatico Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!torn!webster!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail Xref: archiver1.google.com comp.lang.ada:30870 Date: 2002-11-14T08:49:30-05:00 List-Id: Artiom Ivanov wrote: > > I have a question to all who had been working closely with multithreaded > programming. > > As you know in many applications when using threads, we sometimes need to > create a "tasks" dynamically (I mean at run-time). > > For example when you need to create a server for a client applications (when > there can be more then one client application) you need to create tasks when > it's needed at run-time and after finishing processing destruct them. > > It will be very cool if you could explain me a way to proceed for dynamic > multithreading and post me some examples. > > Thanks in advance Ok well I'm no expert with ada concurrency issues but I would recommend: 1)reading the ada rationale 2)reading what Cohen has to say in Cohen's Ada book, and 3)"Concurrency in Ada". From what I understand this is the better book for what you want. http://titles.cambridge.org/catalogue.asp?isbn=0521414717 The following quote taken from http://portal.acm.org/citation.cfm?id=211392&dl=ACM&coll=portal# "Burns and Wellings and their associates were major contributors to the movement that called for the revision of Ada 83 and its subsequent upgrade to Ada 95. This book turns their spotlight squarely on the new language, Ada 95." 4)IMHO You'll find a good way of using multhreaded tasks in the ada web server sources. Search for the keyword "task" in their sources and you'll find what you want. Be warned you'll need to understand all the intricacies of "select" statements also. http://libre.act-europe.fr/aws/ I hope this helps and good luck :) Sant� bonheur, David Marceau