반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 스레드그룸
- include 지시자
- ID중복
- InputDialog
- include액션태그
- Linux셋팅
- char[] String 형변환
- 아이디중복
- StringReader
- interrupted()
- MemoryStream
- ThreadGroup()
- 표현 언어
- String char[] 형변환
- 상관 서브 쿼리
- Linux세팅
- ObjectInputStream
- first-child
- Daemon()
- 리눅스셋팅
- isinterrupted()
- StringWriter
- include지시자
- 동기화
- sleep()메소드
- interrupt()
- 리눅스세팅
- 메모리스트림
- 상관서브쿼리
- first-of-child
Archives
- Today
- Total
목록interrupted() (1)
다연이네
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/Wg3ks/btqLRkr4eGs/z2WfGqirKSfQ7dlO5Tt64k/img.png)
package days26; public class Ex09 { public static void main(String[] args) { //문제 - 동기화 // 이름을 출력하는 스레드 선언: PrintWorker // 이름을 출력하는 클래스: PrintMachine (기계는 1대라서 모든 스레드가 공유해서 사용) 공유자원 PrintMachine machine = new PrintMachine(); //머신1대(공유자원) PrintWorker t1 = new PrintWorker("배다연", machine); PrintWorker t2 = new PrintWorker("김동준", machine); PrintWorker t3 = new PrintWorker("남도산", machine); PrintWorke..
Java
2020. 10. 26. 23:44