Accept

  • 홈
  • 태그
  • 방명록

java multithreading 2

[Java] 멀티스레딩 연습 - MultiThreadExecutor 구현

package thread.example.creation;import java.util.ArrayList;import java.util.List;public class ThreadMultiExecutor { private final List tasks; /** * @param tasks to executed concurrently */ public ThreadMultiExecutor(List tasks) { this.tasks = tasks; } /** * Starts and executes all the tasks concurrently */ public void executeAll() { List threads = ..

Java & Spring Boot 2024.11.24

[Java] 스레드 구성 방식

두 코드 모두 결과는 동일하지만, Runnable 인터페이스 방식은 더 유연하고 재사용 가능한 구현이 가능하다.// Thread 클래스 확장 방식public class Main { public static void main(String [] args) { Thread thread = new TaskThread1(); thread.start(); } public static class TaskThread1 extends Thread { @Override public void run() { System.out.println("Hello from new thread"); } }}// Runnable 인터페이스 구현 방식public clas..

Java & Spring Boot 2024.11.24
이전
1
다음
더보기
프로필사진

Accept

https://github.com/mja91

  • 분류 전체보기 (43)
    • Java & Spring Boot (15)
    • Performance (2)
    • Implementation (1)
    • Infra & Network (10)
    • OS (1)
    • Docker (3)
    • 회계 (3)
    • Etc. (7)

Tag

Spring Boot, 자바 스레드, AWS, python 문법, multithreading, Mac, 코드업, 財務会計, 자바, 멀티스레드, Linux, thread, MySQL, Python, Java, Runnable, JAVA 알고리즘, java 코딩테스트, JPA, git,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/12   »
일 월 화 수 목 금 토
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31

방문자수Total

  • Today :
  • Yesterday :
Github - mja91

Copyright © Kakao Corp. All rights reserved.

  • GitHub

티스토리툴바