Skip to content

test2_01#19

Open
VadimFarutin wants to merge 1 commit intomasterfrom
test2_01
Open

test2_01#19
VadimFarutin wants to merge 1 commit intomasterfrom
test2_01

Conversation

@VadimFarutin
Copy link
Owner

No description provided.

* Counts sum twice - with on thread and using ForkJoinPool.
*/
public class MainApplication {
public static void main(String[] args) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

запустил на папке src, два раза упало с ArrayIndexOutOfBoundsExceptionв многопоточном варианте, один раз выдало такое:

simple version results: [-125, -93, 124, 71, -39, 112, -67, 77, 85, 3, -77, -2, 34, -110, -96, 73] in 16 msecs
fork join version results: [68, 125, 6, 52, -117, 57, 1, -71, 101, -80, 82, 121, 45, -81, -102, -94] in 5 msecs
(результаты, я так понимаю, получились разные)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ну и тестов нет, что грустно

@jzuken
Copy link
Collaborator

jzuken commented May 1, 2018

6 баллов

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants