From: Lutz Donnerhacke <lutz@iks-jena.de>
Subject: Re: Tasking_Error
Date: Mon, 17 Mar 2003 10:10:25 +0000 (UTC)
Date: 2003-03-17T10:10:25+00:00 [thread overview]
Message-ID: <slrnb7b7of.o1.lutz@taranis.iks-jena.de> (raw)
In-Reply-To: r6a25b.1bt.ln@ID-soos.user.dfncis.de
* Stefan Soos wrote:
> when i run the following program on Linux 2.4.18 with Gnat 3.14p-3 I
> always get the following exception information:
> Exception name: TASKING_ERROR
> Message: Failure during activation
This is caused by the OS, you have. The number of processes is limited and
even if you might using threads, you'll reach the limit.
OTOH the other advice about collecting all rendevouz calls is right, too.
The following excerpt works for me (ulimit 256 tasks, so maximum ist 229).
---CUT HERE---
Maximum_Tasks : constant := 50;
task type Called_Task_Type is
entry Start;
entry Rendevouz;
end Called_Task_Type;
task body Called_Task_Type is
begin
accept Start;
Put ("Tasks waiting so far: ");
Put (Rendevouz'Count);
New_Line;
loop
select
accept Rendevouz;
or terminate;
end select;
end loop;
end Called_Task_Type;
---CUT HERE---
next prev parent reply other threads:[~2003-03-17 10:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-16 16:53 Tasking_Error Stefan Soos
2003-03-16 17:22 ` Tasking_Error James S. Rogers
2003-03-16 17:48 ` Tasking_Error Stefan Soos
2003-03-17 7:30 ` Tasking_Error Pascal Obry
2003-03-17 21:43 ` Tasking_Error Anders Gidenstam
2003-03-17 8:03 ` Tasking_Error Egil Harald H�vik
2003-03-17 10:10 ` Lutz Donnerhacke [this message]
2003-03-17 11:15 ` Tasking_Error Adrian Knoth
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox