|
synchronization에 실패하면 data가 손상될 수 있다.
Multithreaded Search (2)
Declarations and Global Variables
include the header file <cthreads.h>
identify the parent thread
search function에서 child threads와 구별을 위함.
mutual exclusion lock 필요
file_lock - file의 list를 가리
|
- 페이지 22페이지
- 가격 1,500원
- 등록일 2003.12.23
- 파일종류 피피티(ppt)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
synchronization문제를 해결하기위해 사용하는 방법 2가지를 들고 설명하시오.
답 : ① Mutual Exclusion lock (MUTEX lock)
: 공유 데이터에 순차적으로 액세스(serial access)할 수 있는 능력을 제공해주는 메커니즘으로 lock과 unlock을 이용해 하나의 thread만이
|
- 페이지 5페이지
- 가격 1,000원
- 등록일 2003.12.23
- 파일종류 워드(doc)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|