Package gmisclib :: Module spread_jobs :: Class workers_c
[frames] | no frames]

Class workers_c

source code


This creates a group of worker threads that take tasks from the iqueue and put the answers on the oqueue.

Instance Methods
 
__init__(self, connection_factory, list_of_args, iqueue, oqueue, stdin, solock, verbose=False, tail_callback=None, past_performance=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
join(self) source code
 
pass_performance(self, x) source code
 
__len__(self) source code
(float, int)
num_active(self)
Returns: total usefulness of all workers and the number of live workers
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, connection_factory, list_of_args, iqueue, oqueue, stdin, solock, verbose=False, tail_callback=None, past_performance=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

num_active(self)

source code 
Returns: (float, int)
total usefulness of all workers and the number of live workers