Thread: unplugging...
View Single Post
  #82 (permalink)   Report Post  
Posted to alt.food.diabetic,alt.support.diabetes
Ozlover Ozlover is offline
external usenet poster
 
Posts: 6
Default unplugging...

Robert Miles > wrote:
> On 9/25/2010 12:52 AM, Chris Malcolm wrote:


Why respond *now*? Couldn't you wait a *little* longer for the first
anniversary!?

> > In alt.support.diabetes Ellen > wrote:
> >> "Chris > wrote in message
> >> ...
> >>> In alt.support.diabetes Ellen >
> >>> wrote:
> >>>> "Chris > wrote in message
> >>>> ...
> >>>>> In alt.support.diabetes Ellen >
> >>>>> wrote:
> >>>>>> "Chris > wrote in message
> >>>>>> ...

> [snip]
> > Coroutines differ in a number of ways from subroutines. For example
> > they're allowed to exit when they're only part finished, to be resumed
> > from where they broke off when the next coroutine call is made. That
> > allows a very natural and elegant programming solution to the kind of
> > interleaved multiple data hierarchies I've been describing.
> >
> > Another way of handling the same kind of data structuring problem
> > elegantly (but not quite as elegant as with coroutines) is by using
> > software interrupts which invoke the hardware interrupt mechanisms of
> > the computer by means of programmed software. In the early days of
> > computers not all computers had such a facility in the hardware of the
> > computer. These days (almost) all computers have it, but its use is
> > usually restricted to the systems programmers who program the
> > operating system.
> >
> > I brought in the idea of coroutines because folk were discussing
> > esoteric aspects of certain kinds of programming such as programming
> > in assembly language and hexadecimal. I just wondered if there were
> > any folk around who'd done enough serious complicated assembly
> > language coding to have heard of or even used coroutines.
> >
> > Seems not. Just wondered :-)

>
> I've used hexadecimal and done some assembly language programming,
> but that could have easily been before coroutines became known.
> I've never seen them mentioned before this thread. However, I
> have seen some multi-thread programs, not in assembler, that were
> written to have some parallel capability by being able to run on
> more than one core of a modern multi-core CPU at the same time.
> Perhaps a new name for the same thing?
>
> Robert Miles


--
Frank Slootweg,
"Australia, beautiful one day - perfect the next."