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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Tue, 12 Nov 2013 03:53:49 -0600 Date: Tue, 12 Nov 2013 01:53:53 -0800 From: FritzVonBraun User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Maximum Number Of Tasks? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-TNnz6S8cQNow1JWkWI2aBzS6V2k2XtwBx3Pq2YIave44Ei6JPtGZqVyLyPyirO7eZ1ovDX+6PJKss5j!/lLgTDFkEm8fueqjAfyXJjeHuTRhAMWDBA/42DxtlnGvccNcmNFQZ9sTiTOR/6vQkWh/izw8ORTV X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1968 Xref: news.eternal-september.org comp.lang.ada:17620 Date: 2013-11-12T01:53:53-08:00 List-Id: I was wondering about the maximum number of tasks in Ada but I couldnt find any info. The question is, is a task in Ada technically similar to a thread in Windows under the hood? Threads are restricted by the stack size that each thread has reserved, so in practice the maximum number of threads is about 2000. The reason I'm asking is that I wonder if Ada provides a more comfortable solution to the thread pool problem. In C++ for example I create a number of threads roughly equal to the number of processor cores and then have a number of Jobs that are distributed over the threads and which implement a time sharing system by returning control to the thread which then assigns time to another Job. Would I have to do the same in Ada or are tasks meant to be "micro objects' of which many can be created and the Ada runtime does effectively what my threadpool system does in C++ Thanks for any info