Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

p.355~356 세마포 signal 함수 #28

Closed
neont21 opened this issue Feb 5, 2023 · 1 comment
Closed

p.355~356 세마포 signal 함수 #28

neont21 opened this issue Feb 5, 2023 · 1 comment

Comments

@neont21
Copy link

neont21 commented Feb 5, 2023

작동하는 코드라기 보다는 pseudo-code라서 큰 문제는 없을 것 같습니다만,
wait 함수는

wait() {
    while ( S <= 0 )
    ;
    S--;
}

와 같이 세미콜론이 있는 반면

signal 함수는

signal() {
    S++
}

와 같이 세미콜론이 생략되어 있어,
일관성을 유지하는 쪽이 좋을 것 같다는 제안 드립니다.

(355페이지 코드만 언급했지만 356페이지 코드도 마찬가지.)

@kangtegong
Copy link
Owner

kangtegong commented Feb 5, 2023

확인후 필요시 반영하겠습니다. 감사합니다. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants