Yet another parallel foreach + continue question

seany seany at uni-bonn.de
Tue Jul 20 02:39:58 UTC 2021


On Tuesday, 20 July 2021 at 02:31:14 UTC, H. S. Teoh wrote:
> On Tue, Jul 20, 2021 at 01:07:22AM +0000, seany via 
> Digitalmars-d-learn wrote:
>> On Tuesday, 20 July 2021 at 00:37:56 UTC, H. S. Teoh wrote:
>> > [...]
>> 
>> Ok, therefore it means that, if at `j = 13 `i use a continue, 
>> then the thread where I had `10`... `20` as values of `j`, 
>> will only execute for `j = 10, 11, 12 ` and will not reach 
>> `14`or later ?
>
> No, it will.
>
> Since each iteration is running in parallel, the fact that one 
> of them terminated early should not affect the others.
>
>
> T

Even tho, the workunit specified 11 values to a single thread?


More information about the Digitalmars-d-learn mailing list