Message 319277 - Python tracker

Message319277

Author Python++
Recipients Python++, asvetlov, yselivanov
Date 2018-06-11.07:09:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CADKuufvBi8KVabYGW_dXwsgXnAH5X=iW+KUm6ULKG4tmQf7CoQ@mail.gmail.com>
In-reply-to <1528654688.47.0.592728768989.issue33823@psf.upfronthosting.co.za>
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 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>
> _______________________________________
>
History
Date User Action Args
2018-06-11 07:09:43Python++setrecipients: + Python++, asvetlov, yselivanov
2018-06-11 07:09:43Python++linkissue33823 messages
2018-06-11 07:09:42Python++create