Message319278
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 15:09 GMT+08:00 Python++ <report@bugs.python.org>:
>
> Python++ <aigalaxy.xyz@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@bugs.python.org>:
>
> >
> > Yury Selivanov <yselivanov@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@bugs.python.org>
> > <https://bugs.python.org/issue33823>
> > _______________________________________
> >
>
> ----------
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <https://bugs.python.org/issue33823>
> _______________________________________
> |
|
Date |
User |
Action |
Args |
2018-06-15 17:35:21 | terry.reedy | unlink | issue33823 messages |
2018-06-11 07:12:04 | Python++ | set | recipients:
+ Python++, asvetlov, yselivanov |
2018-06-11 07:12:04 | Python++ | link | issue33823 messages |
2018-06-11 07:12:04 | Python++ | create | |
|