Benefits of continuation?

June Kim junaftnoon at nospamplzyahoo.com
Fri Nov 3 15:08:26 EST 2000


"Courageous" <jkraska1 at san.rr.com> wrote in message
news:ar160tcnr3vdocehs12rg7u53tfhjohdhl at 4ax.com...
>
> >I think this remark above is very true. Context switches was the very
> >first brain wave I had. Makes me wonder whether continuation actual ever
> >will be used directly. Indirect usage ("under-water", hidden, etc.)
> >seems more likely.
>
> Right. You have to understand that they are a very useful
> mechanism upon which you can build alternate flow-control
> constructs. I personally use them for context-switching in a
> simulation I wrote. They are, ah.... VERY VERY FAST.
>

Could I have a look at some snippets of examples to
get the feeling of how it works in reality? It would be
really nice 'cause reading those rather abstract documents
gives me only vague images of the castle in the air.

Best regards,

June.

> An attempt to do the same thing in Java would cause the
> JVM to die a horrible death with 1/10th the thread-load.
>
>
>
> C//
>
>
>
>




More information about the Python-list mailing list