Issue #12042: a queue is only used to retrive results; preliminary patch by Jordan Stadler

This commit is contained in:
Sandro Tosi 2012-01-05 19:48:30 +01:00
parent 7f418f67a8
commit 24f207e99e

View file

@ -611,8 +611,8 @@ multiple of 4.
result = queue.get()
print 'Factorial', N, '=', result
A :class:`Queue` is used to communicate the input parameter *N* and
the result. The :class:`Queue` object is stored in a global variable.
A :class:`Queue` is used to communicate the result of the factorial.
The :class:`Queue` object is stored in a global variable.
The child process will use the value of the variable when the child
was created; because it's a :class:`Queue`, parent and child can use
the object to communicate. (If the parent were to change the value of