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,d576ceec8fa95166 X-Google-Attributes: gid103376,public From: "Matthew Heaney" Subject: Re: tasks, simple question Date: 1999/11/15 Message-ID: <3830c61c_3@news1.prserv.net>#1/1 X-Deja-AN: 549110520 Content-transfer-encoding: 7bit References: <382FC705.29121528@interact.net.au> Content-Type: text/plain; charset="US-ASCII" X-Complaints-To: abuse@prserv.net X-Trace: 16 Nov 1999 02:49:00 GMT, 129.37.62.17 Organization: Global Network Services - Remote Access Mail & News Services Mime-version: 1.0 Newsgroups: comp.lang.ada Date: 1999-11-15T00:00:00+00:00 List-Id: In article <382FC705.29121528@interact.net.au> , G wrote: > What I am wondering is where and when one would use them. > > What sort of role they play, so to say. What sort of things one > would use them for. Tasks are used for implementing concurrent abstractions. package Philosophers is type Philosopher_Type (Id : Positive) is limited private; private -- This handles the concurrency aspects of a philosopher -- abstraction. type Philosopher_Task_Type (Philosopher : access Philosopher_Type); type Philosopher_Type (Id : Positive) is limited record Philosopher_Task : Philosopher_Task_Type (Philosopher_Type'Access); end record; end Philosophers; Here, we have a group of philosophers who all eat and think simultaneously. An abstraction that is concurrent will have a component implemented as a task. -- If we let the Creationists have their way, we may as well go whole hog. Let us reintroduce the flat-earth theory, the chemistry of the four elements, and mediaeval astrology. For these outworn doctrines have just as much claim to rival current scientific views as Creationism does to challenge evolutionary biology. Abusing Science: The Case Against Creationism Philip Kitcher