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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a1c219342feb1c77 X-Google-Attributes: gid103376,public From: "Marin D. Condic" Subject: Re: ADA client/server Date: 2000/08/20 Message-ID: <399FF365.FC19D03E@acm.org>#1/1 X-Deja-AN: 660389805 Content-Transfer-Encoding: 7bit References: <399ec91e@usenet.per.paradox.net.au> Organization: Quadrus Corporation X-Sender: "Marin D. Condic" (Unverified) X-Server-Date: 20 Aug 2000 15:04:10 GMT Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-08-20T15:04:10+00:00 List-Id: Larry Kilgallen wrote: > Then again, "forking", "multiple processes" or "tasks" are not > a required part of a "client/server" design. In some applications > a "single server queue" is adequate. In some operating systems > the effect of a "multiple server queue" can be achieved without > "forking", "multiple processes" or "tasks". It may not be your > chosen design technique, but it certainly makes it "possible to > build a client/server" program in Ada. Well, for that matter, you could build a client/server program in just about any language. All it requires is the ability of one program to request services from another program and get back results. You can manually fire up both programs and as long as a communication path is available - voila! - you've got client/server. I'd suspect the original questioner ("jill" ) had in mind some means by which she could write code that would initiate another program from within Ada. I don't think that a fork is the most natural way in Ada to do that since there is no "fork" language feature. Using OS calls gets the job done, but it depends on exactly what is the job. If there's no requirement to run the client and server on two separate machines and the only goal is to achieve some degree of parallelism, then maybe tasks are the better approach? Otherwise, one would be looking at compiler specific libraries or OS calls to initiate the server. MDC -- ====================================================================== Marin David Condic - Quadrus Corporation - http://www.quadruscorp.com/ Send Replies To: m c o n d i c @ q u a d r u s c o r p . c o m Visit my web site at: http://www.mcondic.com/ "Take away the punchbowl just when the party gets going" -- William McChesney Martin, Former Fed chairman, explaining what a sound central bank must always do. ======================================================================