Matts_Kallioniemi_QZ@QZCOM.MAILNET (09/26/86)
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 ---------------------------------------------------------------------------