Skip to content
Snippets Groups Projects
Commit f2d04856 authored by 희원 전's avatar 희원 전
Browse files

Upload New File

parent 8d213d1f
Branches
No related tags found
No related merge requests found
# Operating Systems: project 2
## 실행 환경 및 방법
WSL Ubuntu, VScode 사용
`gcc`로 컴파일 및 `./a.out` 실행파일 실행
## Producer/ Consumer 프로그램
생산자가 물품을 전달하고, 전달받은 물품을 가게가 소비한다.
동기화가 없으면 자신이 전달받지 않은 우유를 소비하게 된다.
## Reader/ Writer 프로그램
`num` 변수에 한 자리의 랜덤 숫자를 계속해서 저장하고, 사용자는 해당 숫자를 계속해서 확인한다.
동기화가 없으면 가장 최근에 저장된 숫자가 아닌 숫자를 읽게 된다.
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment