From: Corey Minyard <minyard@metronet.com>
Subject: Re: is there a 'wait' command in Ada
Date: 1996/12/03
Date: 1996-12-03T00:00:00+00:00 [thread overview]
Message-ID: <m2bucby5qx.fsf@metronet.com> (raw)
In-Reply-To: Pine.SOL.3.91.961129204410.12801A-100000@sirius
kilgallen@eisner.decus.org (Larry Kilgallen) writes:
> In article <m2hgm4vnzz.fsf@metronet.com>, Corey Minyard <minyard@metronet.com> writes:
>
> > This has bugged me since I started using GNAT. If you use a delay,
> > you get a multi-threaded application. There is no way around it that
> > I have found. It is not a debugger issue (although a multi-threaded
> > debugger would be useful).
>
> If the debugger in question cannot deal with threads, that still
> seems to me to be a debugger issue. I thought I read from Mike's
> comment that a correct program would run alright unless the
> debugger is introduced.
>
I'm not saying that the lack of a threaded-aware debugger is ok when
debugging multi-threaded programs. I'm saying that requiring a
threaded-aware debugger to debug a program that is not multi-threaded
is a problem.
IMHO, the GNAT compiler should only require threads if using tasks.
Since delay is not implicitly an operation requiring threads, it
shouldn't require them.
I wrote an Ada application to send pages to my alphanumeric pager. It
used delay to time operations for retrying them. My wife (for whom
the program was written :-) was very annoyed that she could not ^C the
program (due to it using pthreads). So, I modified GNAT to use
linuxthreads (a kernel posix thread package) which works better in
that respect. I would have preferred to not have to do that. But now
I can do System V shared semaphores in a multi-task application
without locking up the whole process, which is something else I
needed.
--
Corey Minyard Internet: minyard@metronet.com
Work: minyard@nortel.ca UUCP: minyard@wf-rch.cirr.com
--
Corey Minyard Internet: minyard@metronet.com
Work: minyard@nortel.ca UUCP: minyard@wf-rch.cirr.com
next prev parent reply other threads:[~1996-12-03 0:00 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-11-29 0:00 is there a 'wait' command in Ada ***** LOTUS *****
1996-11-29 0:00 ` Robert A Duff
1996-11-30 0:00 ` Michael Feldman
1996-11-30 0:00 ` Robert Dewar
1996-12-01 0:00 ` Michael Feldman
1996-12-01 0:00 ` Robert Dewar
1996-12-02 0:00 ` Larry Kilgallen
1996-12-02 0:00 ` Michael Feldman
1996-12-02 0:00 ` David C. Hoos, Sr.
1996-12-09 0:00 ` Fergus Henderson
1996-12-02 0:00 ` Corey Minyard
1996-12-03 0:00 ` Robert A Duff
1996-12-03 0:00 ` Michael Feldman
1996-12-03 0:00 ` Larry Kilgallen
1996-12-03 0:00 ` Michael Feldman
1996-12-04 0:00 ` Larry Kilgallen
1996-12-03 0:00 ` Corey Minyard [this message]
1996-12-04 0:00 ` Robert Dewar
1996-12-04 0:00 ` Keith Thompson
1996-12-10 0:00 ` Robert I. Eachus
-- strict thread matches above, loose matches on Subject: below --
1996-11-29 0:00 tmoran
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox