comp.lang.ada
 help / color / mirror / Atom feed
* ATC and OS calls
@ 1999-02-05  0:00 Thomas Handler
  0 siblings, 0 replies; only message in thread
From: Thomas Handler @ 1999-02-05  0:00 UTC (permalink / 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





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-02-05  0:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-02-05  0:00 ATC and OS calls Thomas Handler

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