[Twisted-Python] Weird thread count
bob at redivi.com
Wed Oct 22 17:45:19 EDT 2003
On Oct 22, 2003, at 5:19 PM, soso wrote:
> Yep, that's why I thought is weird.
> Anyway, I double-checked. I restarted the computer and checked with
> Spy++ too.
> Still 3 threads...
> Also, if you remove the "reactor.connectTCP..." line it behaves ok,
> only 1 thread.
>> On Wed, 22 Oct 2003 23:28:31 +0300
>> soso <duke99 at email.ro> wrote:
>>> The following client code creates 3 threads on startup, even if there
>>> is no server to connect to. And I have no clue why. I'm running on
>>> Win2k and that's what taskmanager says. Any ideas?
>> Presumably those are internal Python threads. Try running just Python
>> and see how many threads there are.
>> Also note that Twisted doesn't use threads for networking), so number
>> networking connections is irrelevant.
Windows may use threads in its implementation of select(), or something.
Why does it matter, anyways? Twisted doesn't explicitly create any
threads unless you ask it to.
More information about the Twisted-Python