개발자 모드

  • 홈
  • 태그
  • 방명록

semSignal 1

[운영체제] 6-2. Semaphore

오늘은 critical section problem을 해결할 수 있는 HW support 방법 중 하나인 Semaphore에 대해서 알아봅시다. Semaphore semaphore는 이전 글에서 소개드린 testset의 단점인 busy waiting을 해결하고, bounded waiting 또한 깔끔하게 해결할 수 있는 방식입니다. testset과 마찬가지로, semaphore도 atomic operation을 이용하여 critical section problem을 해결합니다. Semaphore는 하나의 정수와, 큐를 갖는 구조를 의미합니다. 이들의 쓰임은 아래에서 확인합시다. Semaphore에서는 특별한 함수 semWait(s)과 semSignal(s)을 사용합니다. semWait(s)은 semaph..

CS/OS 2023.10.11
이전
1
다음
더보기
프로필사진

안녕하세요

  • 분류 전체보기 (205)
    • CS (116)
      • OS (43)
      • Computer Architecture (20)
      • Algorithm (20)
      • Network (10)
      • DB (23)
    • Project (4)
      • Random Photo Matcher (4)
    • Error Record (16)
    • BOJ (11)
      • BFS DFS (7)
      • BackTracking (2)
      • Recursion (1)
    • Java (9)
    • Spring (3)
    • JPA (8)
    • Python (6)
    • 기타 (20)
    • 모각코 (12)

최근글과 인기글

  • 최근글
  • 인기글


최근댓글



Archives

Calendar

«   2025/05   »
일 월 화 수 목 금 토
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

Copyright © Kakao Corp. All rights reserved.

  • GitHub

티스토리툴바