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: mfeldman@seas.gwu.edu (Michael Feldman) Subject: Re: Concurrency in Gnat 3.05? Date: 1996/07/20 Message-ID: <4ss86l$30v@felix.seas.gwu.edu>#1/1 X-Deja-AN: 169262128 references: <4sjqte$3mu@masala.cc.uh.edu> <19960718.082642.172@satcom.whit.org> <4smktd$phu@masala.cc.uh.edu> organization: George Washington University newsgroups: comp.lang.ada Date: 1996-07-20T00:00:00+00:00 List-Id: In article , Jon S Anthony wrote: >The point is that time slicing behavior is system dependent. And THAT was the import of Robert Dewar's posts on this subject. The only way to even approach system-_indepencdent_ behavior is to assume no time-slicing. That is just as well, IMHO - it's best to write programs whose behavior you understand, not programs whose behavior depends upon an unpredictable time-slicing scheme in the OS. That is _easier_ to do with Ada tasking. >Actually, that brings up another point. Since you have Win95 >why are you running the DOS version of GNAT under a DOS window instead >of just using the native Win95? But it should not matter; the point is the same. Indeed, one's multitasking program ought to behave in the same way - on an input/ output basis - with or without time-slicing. If it does not, it is a poorly designed concurrent program. That program of mine, cited by the original poster, is introduced in the chapters on concurrency in my texts. Precisely the point of that program - as the text explains - is that its behavior _does_ depend on the presence or absence of time-slicing, and the ensuing examples show how to remove the dependency! Newly updated program distributions are available at ftp://ftp.gwu.edu/pub/ada/courses. These distributions contain an index of the programs in the order they appear in the text, so you can study them in the proper sequence. [BLATANT PLUG] Better to buy the books, of course.:-) Home pages for the books are at http://www.aw.com/cseng/authors/feldman/cs1-ada2e/cs1-ada2e.html (Ada 95 Problem Solving and Program Design) http://www.aw.com/cseng/authors/feldman/cs2-ada/cs2-ada.html (Software Construction and Data Structures with Ada 95) Both books are available now. Mike Feldman