Skip to content

refactor: 쓰레드풀을 사용하도록 리팩토링#27

Merged
1 commit merged intodevfrom
refactor4
Apr 2, 2021
Merged

refactor: 쓰레드풀을 사용하도록 리팩토링#27
1 commit merged intodevfrom
refactor4

Conversation

@janeljs
Copy link
Copy Markdown
Owner

@janeljs janeljs commented Apr 2, 2021

No description provided.

Comment on lines +30 to +32
ExecutorService executorService = Executors.newFixedThreadPool(10);
while ((connection = listenSocket.accept()) != null) {
RequestHandler requestHandler = new RequestHandler(connection);
requestHandler.start();
executorService.execute(new RequestHandler(connection));
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

쓰레드 풀을 적절히 이용하셨군요 ㅎㅎㅎ

@ghost ghost merged commit 10b36ff into dev Apr 2, 2021
@ghost ghost deleted the refactor4 branch April 2, 2021 06:06
This pull request was closed.
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.

1 participant