picokernel을 이용한 동기화, dinning philosopher, Sleeping Barber

  • 등록일 / 수정일
  • 페이지 / 형식
  • 자료평가
  • 구매가격
  • 2010.04.15 / 2019.12.24
  • 7페이지 / fileicon hwp (아래아한글2002)
  • 평가한 분이 없습니다. (구매금액의 3%지급)
  • 1,000원
다운로드장바구니
Naver Naver로그인 Kakao Kakao로그인
최대 20페이지까지 미리보기 서비스를 제공합니다.
자료평가하면 구매금액의 3%지급!
이전큰이미지 다음큰이미지
목차
1. Mutex나 Semaphore를 활용하는 동기화 응용프로그램
1.1 프로그램 설명
1.2 소스 코드
1.3 실행 결과
(1) Mutex 사용 안함(명암 부분 없음)
(2)Mutex 사용함(명암 부분 있음)
1.4 결과 분석
2. Deadlock이 발생하지 않는 dinning philosopher
2.1 프로그램 설명
2.2 소스 코드
2.3 실행 결과
2.4 결과 분석
3. Sleeping Barber Problem
3.1 프로그램 설명
3.2 소스 코드
3.3 실행 결과
3.4 결과 분석

본문내용
1. Mutex나 Semaphore를 활용하는 동기화 응용프로그램
1.1 프로그램 설명
Thread가 실행되며 전역 메모리 작업을 하다 다른 Thread로 작업이 넘어가 전역 메모리를 사용하게 되면 전체적인 작업에 이상이 생길 수 있다. 이 프로그램은 과제 #01에서 사용용됬던 프로그램이 작동하는 도중 강제로 프로세스를 중단시켜 이상을 발생시켜 보고, 이를 해결하기 위해 Mutex를 이용하는 예시이다.
1.2 소스 코드
int arglimit=0,nline=1;
int mutex;
int thread_A(int),thread_B(int);
int userMain(int arg)
{
mutex=mutexCreate(); //Mutex 생성
threadCreate(20,thread_A,0);
threadCreate(20,thread_B,0);
threadCreate(20,thread_A,0);
}
int thread_A(int arg)
{
int id=threadSelf();
while(arglimit
자료평가
    아직 평가한 내용이 없습니다.
회원 추천자료
  • 영어발달사1 레포트
  • sleep란 의미가 차용되었다. ㈁ OE brad는 본래 fragment를 뜻했는데, ON brauð에서 bread를 차용하였다. ㈂ OE dwellan은 본래 lead astray를 뜻하였으나 ON dvlja에서 delay를 차용하였다. 3. 어의전이어의 전이(어의 전이)에는 여러 가지 유형이 있다. 예를 들어 long, short은 그들이 통상 지시하는 공간적 개념에서 전이되어 경우에 따라서는 a long time, a shot while에서처럼 시간적 개념을 지시 할 수 있는데, length, space란 명사의 경우에도 이러한 전이는 일어날 수 있

  • [IT, 운영체제, OS, SYSTEM] 응용운영체제 설명
  • 동기화를 위한 객체와 함께 사용그림 7.40 wait()와 notify()를 사용한 블록 동기화7.8.6 Java 세마포(Java Semaphore)▶ Java 세마포의 구현- Java는 세마포를 지원하지 않음- 표준 동기화 메카니즘을 이용하여 쉽게 구현할 수 있음그림 7.41 Java 세마포 구현: “계수형 세마포”7.8.7 동기화 규칙(Synchronization Rules)▶ 키워드 Synchronized의 동작 규칙- 객체에 대한 락을 소유한 스레드는 다른 synchronized 메서드(블록)로 진입할 수 있음- 스레드는 다른 객체를 위한 sync

  • [자바, JAVA] 자바(JAVA)의 정의, 자바(JAVA)의 특징, 자바(JAVA)의 역사, 자바(JAVA)에서의 문자편집, 자바(JAVA)에서의 함수편집, 자바(JAVA)에서의 Thread처리 분석
  • 동기화(synchronized)가 되어야 한다. 또한, CubbyHole과 같은 object는 동시에 두개의 thread에 의해서 동기화 되면서 접근되는데, 이러한 object를 condition variable이라고 한다. Java language는 monitors를 이용하여 condition variable을 이용하는 thread를 동기화 시킨다.Ⅷ. 결론자바 프로그래밍 언어는 신 언어로써, SUN microsystems에서 개발되었다. 그 후로 여러 다른 소프트웨어 업체에서 이 언어의 장점과 미래의 발전 가능성을 고려하여 여러 가지 회사 버젼으로 개발되고

  • [철학] 플라톤의 국가
  • philosopher?I do not apprehend your meaning.The trait of which I am speaking, I replied, may be also seen in the dog, and is remarkable in the animal.What trait?Why, a dog, whenever he sees a stranger, is angry; when an acquaintance, he welcomes him, although the one has never done him any harm, nor the other any good. Did this never strike you as curious?The matter never struck me before; but I quite recognise the truth of your remark.And surely this instinct of the dog is very charming; your dog is a true philosopher.Why?Why, because he distinguishes the face of a friend and of an

  • AES, BASE64, MD5 상호 동작 프로그램
  • barbers lookingas though he hadnt been at all, had taken a pair of kitchen scissorsand cut his hair so short he was almost bald except for his bangs, whichshe left to hide that horrible scar. Dudley had laughed himself sillyat Harry, who spent a sleepless night imagining school the next day,where he was already laughed at for his baggy clothes and taped glasses.Next morning, however, he had gotten up to find his hair exactly as ithad been before Aunt Petunia had sheared it off He had been given a weekin his cupboard for this, even though he had tried to explain that hecouldnt exp

오늘 본 자료 더보기
  • 오늘 본 자료가 없습니다.
  • 저작권 관련 사항 정보 및 게시물 내용의 진실성에 대하여 레포트샵은 보증하지 아니하며, 해당 정보 및 게시물의 저작권과 기타 법적 책임은 자료 등록자에게 있습니다. 위 정보 및 게시물 내용의 불법적 이용, 무단 전재·배포는 금지됩니다. 저작권침해, 명예훼손 등 분쟁요소 발견시 고객센터에 신고해 주시기 바랍니다.
    사업자등록번호 220-06-55095 대표.신현웅 주소.서울시 서초구 방배로10길 18, 402호 대표전화.02-539-9392
    개인정보책임자.박정아 통신판매업신고번호 제2017-서울서초-1806호 이메일 help@reportshop.co.kr
    copyright (c) 2003 reoprtshop. steel All reserved.