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 | 29 | 30 | 31 |
Tags
- spring
- 인프런
- QueryDSL
- jpa
- Proxy
- java
- AOP
- 스프링 핵심 원리
- http
- 백준
- SpringBoot
- JPQL
- kotlin
- Exception
- db
- 알고리즘
- 스프링 핵심 기능
- 자바
- pointcut
- 김영한
- Android
- Thymeleaf
- 그리디
- 스프링
- Spring Boot
- Servlet
- transaction
- Greedy
- springdatajpa
- JDBC
Archives
- Today
- Total
목록멀티 스레드 (1)
개발자되기 프로젝트
멀티 Thread 프로그래밍에서의 동기화
1. Critical Section과 semaphore Critical Section은 두 개 이상의 thread가 동시에 에 접근 하는 경우 문제가 발생할 수 있기 때문에 동시에 접근할 수 없는 영역 semaphore는 특별한 형태의 시스템 객체이며 get/release 두 개의 기능이 있다. 한 순간 오직 하나의 thread만이 semaphore를 얻을 수 있고, 나머지 thread들은 대기(blocking)상태가 된다. semaphore를 얻은 thread만이 critical section에 들어갈 수 있다. 2. Park 과 Park2 가 동시에 Bank 자원에 접근하여 작업이 이루어지는 경우의 예제 Shared resource : Bank객체 Critical Section : saveMoney(..
Java/다양한 기능
2021. 11. 3. 22:25