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,ab2ba9c5d12b0f12 X-Google-Attributes: gid103376,public From: dewar@cs.nyu.edu (Robert Dewar) Subject: Re: Concurrency in Gnat 3.05? Date: 1996/07/18 Message-ID: #1/1 X-Deja-AN: 168952239 references: <4sjqte$3mu@masala.cc.uh.edu> <19960718.082642.172@satcom.whit.org> <4smktd$phu@masala.cc.uh.edu> organization: Courant Institute of Mathematical Sciences newsgroups: comp.lang.ada Date: 1996-07-18T00:00:00+00:00 List-Id: Spasmo says "Well others did manage to do it, so I had assumed that GNAT was the same. Still it's a shame not having tasks that time slice, I mean it doesn't really seem all that big a deal to have tasking when they don't appear to run concurrently. Entries into them and all are allright, but still without time slicing..." That's quite wrong. Serious use of tasking for real-time programs generally prefers to completely avoid time slicing. That is why the requirement in the real time annex of Ada is that time slicing must NOT occur using the default scheduling policy (FIFO_Within_Priorities). Generally time slicing can be made available on many operating systems, but it is a bit tricky in DOS, because of limitations in the operating system. It certainly would be possible, but since it is not required (in fact it is only permitted as an option), it is not a high priority item. If what you want is effective concurrency between multiple threads, there are many ways to achieve this in correctly programmed Ada. An Ada program that depends on time slicing is non-portable.