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 | 31 |
Tags
- opencv-python
- #PostgreSQL
- python3.7
- 상위유튜버
- linux
- Mermaid
- python 3.7
- python 3.7 install
- sshd_config
- 유튜브구독자
- sequence diagram
- 유튜브수익
- pip3
- 유튜브채널
- vim
- python install 3.7
- nunjucks
- PYTHON
- nodejs
- root
- ubuntu
- OpenCV
- nodemon
- template
- skbuild
- 유튜브조회수
- 유튜브영상
- Python3
- error
- 유튜브홍보
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