Pyro deadlock

M

MatthewS

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
 
J

J Kenneth King

MatthewS said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top