From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a24:9195:: with SMTP id i143-v6mr1327658ite.52.1531932073239; Wed, 18 Jul 2018 09:41:13 -0700 (PDT) X-Received: by 2002:aca:c744:: with SMTP id x65-v6mr1368985oif.2.1531932072569; Wed, 18 Jul 2018 09:41:12 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!85.12.16.68.MISMATCH!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.am4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!g2-v6no2533183itf.0!news-out.google.com!k71-v6ni731itk.0!nntp.google.com!d7-v6no2513427itj.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 18 Jul 2018 09:41:12 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2601:8c1:8400:84a3:4dae:718c:e1a0:e2a0; posting-account=lJ3JNwoAAAAQfH3VV9vttJLkThaxtTfC NNTP-Posting-Host: 2601:8c1:8400:84a3:4dae:718c:e1a0:e2a0 References: <7461ada5-9bc3-43f5-98b0-b2930d9145bc@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <4d331ee6-6436-4a3f-8d08-5934a93f16b6@googlegroups.com> Subject: Re: How to run a GNAT program without starting a terminal session From: Shark8 Injection-Date: Wed, 18 Jul 2018 16:41:13 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 3065 X-Received-Body-CRC: 3870630970 Xref: reader02.eternal-september.org comp.lang.ada:53893 Date: 2018-07-18T09:41:12-07:00 List-Id: On Wednesday, July 18, 2018 at 1:37:10 AM UTC-6, bj=C3=B6rn lundin wrote: > On 2018-07-17 23:12, Shark8 wrote: > > A lot of the cases I've seen where daemons are used/needed are because = the language [PHP in this case] didn't have any notion of TASKs and DELAYs = -- rather frustrating to come across when it's so trivially easy in Ada. >=20 > No, that is not it at all. > A daemon is a detached background process, like services are on windows. I never said it wasn't. What I said was that the lack of TASK and DELAY necessitated the use of dae= mons in several PHP-based systems I've worked on. > They have no user interface and are supposed to run a long time. > webservers, mailservers etc are typically daemons. So are things that (eg) clean the cache, ensure that some particular proces= s is still active, and/or start some processing at timed intervals; I've se= en each of these as a daemon, often as part of a larger system where a TASK= and/or TASK/DELAY combo would be appropriate. > Has absolutely nothing to do whit language/tasks/delays at all >=20 > Again, look at the above, think in terms of whole system; even if the 'syst= em' includes manual administration. You're reading what I said backwards: i= t's not that Daemons are about TASK, it's that daemons are needed because t= he particular systems I was involved in had no notion of multi-threading an= d instead stitched together a system emulating it [as some level] via daemo= ns.