This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Python++
Recipients Python++, asvetlov, yselivanov
Date 2018-06-11.07:12:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CADKuufvAxNSV1LPC8WJ77T9hKkV=Eg1uoZg4QS4Rrx8rhT423w@mail.gmail.com>
In-reply-to <CADKuufvBi8KVabYGW_dXwsgXnAH5X=iW+KUm6ULKG4tmQf7CoQ@mail.gmail.com>
Content
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>
> _______________________________________
>
History
Date User Action Args
2018-06-15 17:35:21terry.reedyunlinkissue33823 messages
2018-06-11 07:12:04Python++setrecipients: + Python++, asvetlov, yselivanov
2018-06-11 07:12:04Python++linkissue33823 messages
2018-06-11 07:12:04Python++create