From: Thomas Handler <th@umundum.vol.at>
Subject: ATC and OS calls
Date: 1999/02/05
Date: 1999-02-05T00:00:00+00:00 [thread overview]
Message-ID: <36BB6AA1.DCF47A11@umundum.vol.at> (raw)
Hi!
I had a look to some Ada books covering Ada's tasking capabilities.
Regarding ATC I had an implementation idea for some sort of problem and
made some tests to check wether my idea will work or not, since I had no
idea how GNAT will implement ATC and how the implementation interacts
with OS calls (select() on Intel-Linux in this case).
So I did a simple loop containing a
select
delay 1.0;
then abort
-- preparing FD set
-- calling select
end select;
After running for a while the test application stopped with a GPF and
the register contents and from that moment on no further select calls
seemed to work on the system, so a reboot was necessary.
Since every doc I have studied so far doesn't tell me much about ATC it
seems clear to me that aborting a call that allocates some memory
dynamic via ATC will cause troubles.
Any comments from the pros?
Thomas Handler
reply other threads:[~1999-02-05 0:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox