Kaydet (Commit) f5767471 authored tarafından Sandro Tosi's avatar Sandro Tosi

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

üst ba232dfc
...@@ -615,8 +615,8 @@ multiple of 4. ...@@ -615,8 +615,8 @@ multiple of 4.
result = queue.get() result = queue.get()
print 'Factorial', N, '=', result print 'Factorial', N, '=', result
A :class:`Queue` is used to communicate the input parameter *N* and A :class:`Queue` is used to communicate the result of the factorial.
the result. The :class:`Queue` object is stored in a global variable. The :class:`Queue` object is stored in a global variable.
The child process will use the value of the variable when the child 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 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 the object to communicate. (If the parent were to change the value of
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment