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,83e2886f2be41271 X-Google-Attributes: gid103376,public From: John Harbaugh Subject: Re: Tasks in Gnat3.05 for Dos? Date: 1996/07/22 Message-ID: <31F3E4E7.13E4@bunsen.ds.boeing.com>#1/1 X-Deja-AN: 169556862 sender: nntp@bcstec.ca.boeing.com (NNTP News Access) x-nntp-posting-host: 137.136.74.64 references: <4sev09$dik@masala.cc.uh.edu> <31EBF352.530E@bunsen.ds.boeing.com> <4sjtvr$42n@masala.cc.uh.edu> <4su2km$dt4@masala.cc.uh.edu> content-type: text/plain; charset=us-ascii organization: Employee Training, Boeing D&SG mime-version: 1.0 newsgroups: comp.lang.ada x-mailer: Mozilla 2.0 (Win95; I; 16bit) Date: 1996-07-22T00:00:00+00:00 List-Id: Spasmo wrote: > > Robert Dewar (dewar@cs.nyu.edu) wrote: > : "Yep found that out (how I missed it I'll never know). Now it > : compiles and runs, but the tasks don't run concurrently :(" > > : Of course they don't run concurrently, you are on a single processor > : machine. Furthermore, in accordance with the required semantics of > : the real time annex, the scheduling is run-till-blocked. If you > : are thinking that I/O should be overlapped -- you won't get this > : in DOS, DOS does not take kindly to multi-threading. > > : What exactly are you expecting that you do not see? > > Timeslicing. IN any case that's not to be as many folks have told > me, and now that I've started working on some tasking code, I find > that it's actually a good thing since it's better that I implement > my own atomic slicing based on units of work via different entries. > > -- > Spasmo > "Here's a present just for you > When you open it, you'll be through" > "Letter Bomb" by the Circle Jerks In their excellent book "Concurrency In Ada" Burns and Welling make a useful distinction between parallelism and concurrency: "Two processes are said to be executing in parallel if at any instant they are both executing... By comparison, two processes are said to be concurrent if they have the potential for executing in parallel." The important principal is concurrancy. A concurrent program will run correctly on one or many processors, or even a distributed heterogeneous network. Performance depends on the actual hardware, of course. Timeslicing is really just a way of simulating multiple processors. A correct concurrent program will make no assumptions about the number of processors available. - John Harbaugh The Boeing Company "Message disclaimers are not legally binding"