본문 바로가기 메뉴 바로가기

Rocksea - knowledge creator

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Rocksea - knowledge creator

검색하기 폼
  • 분류 전체보기 (366)
    • Developer (200)
    • My Life (163)
      • Books (10)
      • Like (19)
      • ToBe (25)
      • Movies (25)
      • Music (11)
      • Travel (25)
      • Life (1)
      • English (47)
  • 방명록

thread safe (1)
[thead] multi-thread programming for thread-safe

multi-thread programming for thread-safe. multi-thread환경에서의 개발을 하게 될 경우 thread-safe에 대한 고민은 하지 않을 수 가 없다. 이유인 즉 슨 다수의 thread가 하나의 global variable이나 static variable에 값에 대한 접근 및 변경 떄문인데 이를 해결하기 위 해 보통 mutex-lock 을 사용하여 programming을 하게 된다. 이러한 경우 2개의 thread가 존재 할 경우 먼저 실행된 thread가 자원을 선점하게 되고 두번쨰 thread는 unlock시점까지 대기상태가 된다. thread-safe의 예 #include #include #include int ncount; // 쓰레드간 공유되는 자원 pthr..

Developer 2014. 2. 6. 10:55
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
  • 새내기 놀이터 - White Life
  • 영혼을 만지다 - Touch Soul
  • 멋있는 악당 - Crazia
  • Hello Brother!
  • 양민군단
  • 개발자
  • YeG
  • 서키키 IT잡동사니
TAG
  • 영작
  • redis
  • 대명사 구문
  • 비교구문
  • 조동사
  • maven
  • Business English
  • k8s
  • PostgreSQL
  • ubuntu
  • 스페인 여행
  • Python
  • JBOSS
  • 비지니스 영어
  • nodejs
  • mongoDB
  • 베트남
  • Python Django
  • 도덕경
  • NGINX
  • 가정법
  • 다낭
  • 해외여행
  • hdfs
  • AWS
  • 여행
  • it
  • 영문법
  • memcached
  • hadoop
more
«   2025/06   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바