Skip to content

Solution 2 with blocked queues realization#3

Open
NorNickel wants to merge 1 commit intojava-education:solutionfrom
NorNickel:solution
Open

Solution 2 with blocked queues realization#3
NorNickel wants to merge 1 commit intojava-education:solutionfrom
NorNickel:solution

Conversation

@NorNickel
Copy link

No description provided.


ExecutorService calculateService = Executors.newFixedThreadPool(100);

while (cycle || downloadResultQueue.size() > 0) {

Choose a reason for hiding this comment

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

Вот холостой цикл который будет ждать нужных условий нагружая ядра, таких штук лучше избегать, а то это потенциальная точка деградации производительности.

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