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,8ed3f27ca288a8e7 X-Google-Attributes: gid103376,public From: franke@pax10f.mipool.uni-jena.de (Frank Ecke) Subject: Re: why use "task"? Date: 1998/08/11 Message-ID: #1/1 X-Deja-AN: 380037785 References: <35C9F862.5942A291@imap4.asu.edu> Organization: Friedrich-Schiller-University Jena, Germany Newsgroups: comp.lang.ada Date: 1998-08-11T00:00:00+00:00 List-Id: On Thu, 06 Aug 1998 11:39:30, Te-Cheng, Shen wrote: >Hi: > What is "task" used for? I know how to use it but dont know when we >will use it? Can anyone give me a " real example?" It means we will use >it >in reality, not just for demostrating. > >Thanks in advance > >Shen > > A task is Ada's concept of expressing concurrency within a program. Tasks are entities that execute in parallel. Each task represents a separate thread of control and runs independently between the points where it interacts with other tasks. Examples of using tasks are applications requiring the use of concurreny: large and complex systems (which are inherently concurrent), such as avionics systems, industry controlling systems, robots, spacecrafts, databases, missile control facilities, and so forth. Additionally, if you wish to exploit multi- processor hardware, tasks are a suitable means to do so. In essence, tasks allow you to cope with what is known as multitasking or multithreading. From my point of view, the powerful tasking concept incorporated into Ada adds to the beauty of the language. Regards, Frank