[Twisted-Python] blocking and threads

Eugene Coetzee projects at reedflute.com
Tue May 3 10:07:07 MDT 2005


jarrod roberson wrote:

>
>
> On 4/27/05, *Jp Calderone* <exarkun at divmod.com 
> <mailto:exarkun at divmod.com>> wrote:
>
>
>
>       For many projects, asynchronous disk file i/o isn't actually
>     that important.  They either only do a little bit of it, or they
>     can fragment it over multiple reactor iterations manually without
>     too much effort.  
>
>
>
> can you explain the "fragement it over multiple reactor itertations" 
> please?
>
see if this thread is helpful:

http://twistedmatrix.com/pipermail/twisted-python/2005-March/009950.html

I'm using this technique which boils down to reactor.callLater(0, 
recursive_function, args)

I also tried reactor.iterate()

(http://twistedmatrix.com/documents/current/api/twisted.internet.interfaces.IReactorCore.html#iterate 
)

- although this prevented blocking for some reason it had some 
undesirable side effects with my app.

regards,

Eugene Coetzee
 

-- 
--
===============================================
Reedflute Software Solutions

Telephone           -> +27 18 293 3236
General information -> info at reedflute.com
Project information -> projects at reedflute.com
Web                 -> www.reedflute.com
=============================================== 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20050503/407fa384/attachment.html>


More information about the Twisted-Python mailing list