On Fri, Sep 4, 2009 at 4:59 PM, Bokhan Artem <a...@academ.org> wrote:
> Hello. > > Is there right (standard) way to write twisted network server > (tcp/web/mail/etc) which could use several cpu cores? For example, > master+workers model, where every worker doing the same job. > If so, may somebody help to wrap the sample code below? > May be some well-known twisted based software can do that? > The sample code you've provided doesn't do anything; no CPU consumption of its own (it's all in the framework) and no network I/O of its own. So it's hard to come up with a realistic example. There's no way to tell Twisted itself to spread itself out over multiple CPU cores, but then, Twisted itself is rarely the chief CPU consumer in an application. If you want to take advantage of multiple CPU cures though, have a look at Ampoule: <https://launchpad.net/ampoule>.
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python