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=3.9 required=5.0 tests=BAYES_20,INVALID_DATE, MSGID_SHORT,REPLYTO_WITHOUT_TO_CC,UNRESOLVED_TEMPLATE autolearn=no autolearn_force=no version=3.4.4 Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbatt!cbosgd!ucbvax!QZCOM.MAILNET!Matts_Kallioniemi_QZ From: Matts_Kallioniemi_QZ@QZCOM.MAILNET Newsgroups: net.lang.ada Subject: Re: Task question Message-ID: <204386@QZCOM> Date: Fri, 26-Sep-86 13:28:39 EDT Article-I.D.: QZCOM.204386 Posted: Fri Sep 26 13:28:39 1986 Date-Received: Tue, 30-Sep-86 03:18:04 EDT References: <204266@QZCOM> Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: Matts_Kallioniemi_QZ%QZCOM.MAILNET@MIT-MULTICS.ARPA, ADA_mailing_list%QZCOM.MAILNET@MIT-MULTICS.ARPA Organization: The ARPA Internet List-Id: You didn't mention what compiler You use. Task scheduling is implementation dependent. VAX-Ada for example lets a task run as long it has demand on cpu, which in Your case is forever for each task. The thing is to use PRAGMA TIME_SLICE(0.01); to force a rescheduling after every 0.01 seconds. This will naturally increase the overhead when running the program. Have a Nice Day! --------------------------------------------------------------------------- BITNET: MATTS@SEARN.BITNET (mail) MATTS@SEQZ51.BITNET (files, vax/vms-jnet) MAILNET: Matts_Kallioniemi_QZ@QZCOM.MAILNET ARPA/CSNET: Matts_Kallioniemi_QZ%QZCOM.MAILNET@MIT-MULTICS.ARPA JANET: Matts_Kallioniemi_QZ%QZCOM@UK.AC.YORK.KL EAN: matts@QZ.sunet PSI/VAX-Mail: 240200101915::MATTS G3 fax: Nat: 08-675559 Int: +46 8 675559 Telephone: Nat: 08-654550 Int: +46 8 654550 Telex: SWE/10366 FOAS Reality-Mail: QZ, Stockholm University Computing Center Box 27322, Linnegatan 89 S-102 54 STOCKHOLM, Sweden ICBM: N5920 E01806 ---------------------------------------------------------------------------