comp.lang.ada
 help / color / mirror / Atom feed
* Maximum Number Of Tasks?
@ 2013-11-12  9:53 FritzVonBraun
  2013-11-12 10:59 ` Jacob Sparre Andersen
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: FritzVonBraun @ 2013-11-12  9:53 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-12-06  3:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-12  9:53 Maximum Number Of Tasks? FritzVonBraun
2013-11-12 10:59 ` Jacob Sparre Andersen
2013-11-12 12:52 ` Georg Bauhaus
2013-12-06  3:26   ` Brad Moore
2013-11-12 13:21 ` mockturtle
2013-11-12 20:02   ` Ludovic Brenta
2013-11-12 20:04     ` Ludovic Brenta
2013-11-12 15:54 ` Jeffrey Carter
2013-11-12 16:17   ` Dmitry A. Kazakov
2013-11-14 13:00 ` Marius Amado-Alves

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