Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Python
Twisted: 1 thread in the reactor pattern
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="jacopo, post: 3946914"] Jean -Paul, not sure I have understood. Say I have one server S and two clients C1 and C2 (all on separate machines). (a) C1 requests a remote call of f1() to S, f1() requires 5 minutes of processing. (b) S puts f1() in a queue and returns immediately a Deferred to C1. (c) Now f1() starts and keeps S’s processor busy for 5 mins (d) after few seconds C2 requests a remote call f2() to S. (e) On S the processor is already engaged with f1() but still “someone” on S is able to accept the request from C2, put it in a queue (after f1()) and return a Deferred to C2. (f) At some point after f1() is finished f2() will start I believe (b) is what you say “run for a short enough period of time that it doesn't matter that the reactor is prevented from accepting new connections (or what have you) for the duration of their execution.” ?! Don’t we have (c) and (e) running at the same time here? How is it possible to have only one Thread? Thanks, Jacopo [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
Twisted: 1 thread in the reactor pattern
Top