CThread에 대하여
본 자료는 7페이지 의 미리보기를 제공합니다. 이미지를 클릭하여 주세요.
닫기
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
해당 자료는 7페이지 까지만 미리보기를 제공합니다.
7페이지 이후부터 다운로드 후 확인할 수 있습니다.

소개글

CThread에 대하여에 대한 보고서 자료입니다.

목차

1. Introduction

2. Synchronization

3. Multithreaded Search

4. Additional C Thread Functions

본문내용

Introduction
Mach는 C Language interface library를 제공
multithreaded program을 만드는 어려움을 줄여준다.
low-level threads primitive를 이용하지 않고 multiple threads를 만들고 이용할 수 있다.
C-threads library라고 부르는 library에 있는 routine을 통해서 인터페이스를 access한다.
...
Synchronization
Single task의 모든 thread는 같은 address space를
공유한다.
하나의 Task의 모든 thread는 data를 공유한다.
shared data를 access하는 threads는 synchronize가 필요하다. synchronization에 실패하면 data가 손상될 수 있다.
Multithreaded Search (2)
Declarations and Global Variables
include the header file
identify the parent thread
search function에서 child threads와 구별을 위함.
mutual exclusion lock 필요
file_lock - file의 list를 가리키는 files변수에 동시 접근을 보호.
stdio_lock - standard I/O function에 access를 동기화.
count_lock - 작업을 하는 thread의 global count(th_count)에 access를 보호
.....
Additional C Thread Functions (6)
Naming
cthread_set_name(t, data)
thread와 자료 값을 연결하는 함수
t는 thread identifier
data는 thread와 연결할 자료 값
  • 가격1,500
  • 페이지수22페이지
  • 등록일2003.12.23
  • 저작시기2003.12
  • 파일형식파워포인트(ppt)
  • 자료번호#240157
본 자료는 최근 2주간 다운받은 회원이 없습니다.
청소해
다운로드 장바구니