[issue33823] A BUG in concurrent/asyncio

Python++ report at bugs.python.org
Mon Jun 11 03:09:43 EDT 2018


Python++ <aigalaxy.xyz at gmail.com> added the comment:

First Kind of resutl sets:

=====================================================

Process-2:<4816> is ProcessExecuting [0]
MainThread:<4816> is ThreadExecuting [0]
exe_iter:0 sub_iter:0
Run for Wheel and result:0
callback number:1
MainThread:<4816> is ThreadExecuting [1]
exe_iter:0 sub_iter:1
Run for Wheel and result:2
callback number:2
Process-1:<4512> is ProcessExecuting [1]
MainThread:<4512> is ThreadExecuting [0]
exe_iter:1 sub_iter:0
Run for Wheel and result:0
callback number:1
MainThread:<4512> is ThreadExecuting [1]
exe_iter:1 sub_iter:1
Run for Wheel and result:2
callback number:2
======================================================
Program runs with different Threads:
Tread ID: 4816 and 4512
callback numbers are 1, 2; 1, 2
====================================================

Second Kind of resutl sets:

======================================================
Process-1:<7360> is ProcessExecuting [0]
MainThread:<7360> is ThreadExecuting [0]
exe_iter:0 sub_iter:0
Run for Wheel and result:0
callback number:1
MainThread:<7360> is ThreadExecuting [1]
exe_iter:0 sub_iter:1
Run for Wheel and result:2
callback number:2
Process-1:<7360> is ProcessExecuting [1]
MainThread:<7360> is ThreadExecuting [0]
exe_iter:1 sub_iter:0
Run for Wheel and result:0
callback number:3
MainThread:<7360> is ThreadExecuting [1]
exe_iter:1 sub_iter:1
Run for Wheel and result:2
callback number:4
=================================================

Program runs with the same and only Thread:
Tread ID: 7360
callback numbers are 1, 2; 3, 4

Based on the above situation, it is impossible to ensure that multiple
processes will run the program all the way by employing Process Pool.

2018-06-11 2:18 GMT+08:00 Yury Selivanov <report at bugs.python.org>:

>
> Yury Selivanov <yselivanov at gmail.com> added the comment:
>
> > which results in the resulting statistics of the last code run cannot be
> promised to be separated.
>
> I'm sorry but I cannot parse your message and the attached code snippet.
> Please try to formulate the actual bug/feature request more clearly.
>
> ----------
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <https://bugs.python.org/issue33823>
> _______________________________________
>

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33823>
_______________________________________


More information about the Python-bugs-list mailing list