Notice
Link
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- linux
- 유튜브채널
- vim
- skbuild
- nodemon
- OpenCV
- nunjucks
- sequence diagram
- 유튜브홍보
- #PostgreSQL
- PYTHON
- 유튜브영상
- python 3.7 install
- nodejs
- root
- pip3
- error
- 상위유튜버
- 유튜브조회수
- opencv-python
- Python3
- 유튜브수익
- template
- python3.7
- sshd_config
- Mermaid
- 유튜브구독자
- ubuntu
- python 3.7
- python install 3.7
Archives
목록JAVA (1)
우리집
자바 쓰레드 생성 및 종료
- 쓰레드 생성 Runnable r = new 쓰레드클래스();Thread th = new Thread(r);th.start(); - 쓰레드 종료 interrupt() 함수를 이용하는 방법 1. try { while(!Thread.currentThread.isInterrupted()) {// 인터럽트가 발생하지 않는경우 실행할 명령...// 특정 조건에서 인터럽트 발생시킴 Thread.currentThread().interrupt()...// 인터럽트가 발생할 경우를 대비하여 Thread.sleep() 함수 구현} } catch(InterruptedException e) { // 인터럽트 발생시 실행 } 2. 쓰레드 내부에서 인터럽트 interrupt() 함수 호출 3. Thread.sleep() 부분에..
JAVA
2018. 4. 6. 17:57