| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- Spring
- JPA
- javascript
- jface
- 자바스크립트
- 자바
- 후기
- MySQL
- effective
- Web
- 백준
- Git
- java
- 이펙티브
- 인터페이스
- 엘라스틱서치
- elasticsearch
- 알고리즘
- 독후감
- RCP
- java8
- 맛집
- 스프링
- boot
- nodejs
- error
- Spring Boot
- 리뷰
- node
- kibana
- Today
- Total
목록Runnable (2)
wedul
여러 쓰레드를 실행해야할 때, 큐에 넣고 작업을 진행하거나 할 수 있으면 더욱 효율적으로 관리 할 수있다. 그래서 자바 1.5부터 자바 플랫폼에는 java.util.concurrent가 추가되었다. 이 패키지에는 Executor Framework가 들어 있는데 이는 인터페이스 기반 task 실행 프레임워크이다. 해당 Executor를 실행하기 위해서는 다음과 같이 입력하면 된다.1234567ExecutorService executor = Executors.newSingleThreadExecutor(); executor. @Override public void run() { System.out.println("test"); }});Colored by Color Scriptercs 그리고 만약 executo..
Runnable을 사용한 MD5 다이제스트 생성방법 package practice1; import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.IOException;import java.security.DigestInputStream;import java.security.MessageDigest;import java.security.NoSuchAlgorithmException; import javax.xml.bind.DatatypeConverter; public class practice implements Runnable{ private String fil..
