Hallo,
Oleg Broytmann hat gesagt: // Oleg Broytmann wrote:

> On Sat, Apr 19, 2008 at 11:19:14PM -0300, Carlos Ribeiro wrote:
> > But the fact is that today you have to deal with parallelism in one form or
> > another. It can be threads or multiple processes, it's unavoidable. And it
> > will get worse with newer CPUs.
> 
>    Threads are evil but processes are not - they are completely separated
> and cannot destroy each other's memory. Processes have less problem (though
> they still need proper synchronisation).

As I'm recently doing more Lua than Python programming: the Lua
community is traditionally very sceptical of threads. The alternative
approach generally taken in Lua are Coroutines, which found their way
into Python some years ago as well ("yield", generators, iterators
etc.), but only in a limited way compared to Lua's more powerful and
flexible asymmetrical coroutines. An interesting paper in this regard
is this: http://www.inf.puc-rio.br/~roberto/docs/corosblp.pdf

Coroutines are more lightweight than processes and don't need special
synchronisation efforts as only one Coroutine is running at any given
time.

Ciao
-- 
 Frank Barknecht                                     _ ______footils.org__

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to