Pyro deadlock

J Kenneth King james at agentultra.com
Tue Jan 20 12:29:17 EST 2009


MatthewS <schaefer.mp at gmail.com> writes:

> I'd like to know if the following behavior is expected and can be
> avoided: I have a Pyro server object that maintains a queue of work,
> and multiple Pyro worker objects that take work off the queue by
> calling a method on the server (get_work) and then return the work to
> the server by calling another method (return_result).
>
> The problem is that I experience a deadlock condition in the
> return_result method.
>
> Is this deadlock expected or should Pyro be able to synchronize the
> remote calls to server's callback method when called from multiple
> workers at the same time? If so any hints are appreciated.
>
> /Matthew

Depends on how you're implementing the work/result queues.

The Queue module is a good start.



More information about the Python-list mailing list