comp.lang.ada
 help / color / mirror / Atom feed
From: pearson%bud.DECnet@LLL-ICDC.ARPA ("BUD::PEARSON")
Subject: Sharing processor between tasks.
Date: Wed, 24-Sep-86 11:55:00 EDT	[thread overview]
Date: Wed Sep 24 11:55:00 1986
Message-ID: <8609260920.AA12668@ucbvax.Berkeley.EDU> (raw)


Somebody in UK-land with an address much too long to work asks why his
program, which defines two free-running tasks that do nothing but print
distinctive messages, prints only one of the two kinds of messages.

The answer is simply that Ada doesn't promise to time-slice tasks of
the same priority. LRM 9.8 says: "For tasks of the same priority, the
scheduling order is not defined by the language." DEC's VAX Ada seems
to follow the strategy of executing one task until it becomes unrunnable
or until a task of higher priority becomes runnable. Makes sense.

  -  Peter
(pearson%anchor.decnet@lll-icdc.arpa)
------

             reply	other threads:[~1986-09-24 15:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1986-09-24 15:55 "BUD::PEARSON" [this message]
  -- strict thread matches above, loose matches on Subject: below --
1986-09-24 15:55 Sharing processor between tasks "BUD::PEARSON"
1986-09-24 20:19 prindle
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox