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.3 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a6c65cbc407987fe X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-14 06:30:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!oleane.net!oleane!teaser.fr!enst.fr!not-for-mail From: "David C. Hoos" Newsgroups: comp.lang.ada Subject: Re: dynamic multithreading Date: Thu, 14 Nov 2002 08:29:12 -0600 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: References: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1037284202 11253 137.194.161.2 (14 Nov 2002 14:30:02 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Thu, 14 Nov 2002 14:30:02 +0000 (UTC) Return-Path: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.13 Precedence: bulk List-Unsubscribe: , List-Id: comp.lang.ada mail<->news gateway List-Post: List-Help: List-Subscribe: , Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Original-Cc: rarelang@ua.fm Xref: archiver1.google.com comp.lang.ada:30873 Date: 2002-11-14T08:29:12-06:00 ----- Original Message ----- From: "Artiom Ivanov" Newsgroups: comp.lang.ada To: Sent: Thursday, November 14, 2002 7:12 AM Subject: dynamic multithreading > 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. > On my FTP site you will find the following file: ftp.ada95.com/pub/TCP_Servers.zip In the body of the CI.TCP.Servers package you will see the task Connect which listens for connection requests, When a connection is requested and granted, a new instance of the task Agent is created to service the connection.