[์์คํ
ํ๋ก๊ทธ๋๋ฐ] ์๊ณ๊ตฌ์ญ๊ณผ ์ธ๋งํฌ์ด์ ๊ดํ์ฌ
ยท
Study/์์คํ
ํ๋ก๊ทธ๋๋ฐ
Critical Sections(์๊ณ ๊ตฌ์ญ) ์ํธ ๋ฐฐํ์ ์ผ๋ก ์คํ๋์ด์ผ ํ๋ ์ฝ๋ ์ธ๊ทธ๋จผํธ ๊ณต์ ์ฅ์น(Shared devices)๋ ํ ๋ฒ์ ํ ํ๋ก์ธ์ค์์ ์ก์ธ์คํด์ผ ํ๋ฏ๋ก ๋ฐฐํ์ ์์(exclusive resources)์ด๋ผ๊ณ ๋ถ๋ฆผ. ์ฝ๋์ ์ค์ํ ๋ถ๋ถ๋ค Entry Section(์ง์
๊ตฌ์ญ) ๊ณต์ ๋ณ์ ๋๋ ๋ค๋ฅธ ์์์ ์์ ํ ๊ถํ์ ์์ฒญํ๋ ์ฝ๋๋ฅผ ํฌํจํ๋ค. Critical Section(์๊ณ ๊ตฌ์ญ) ๊ณต์ ์์์ ์ก์ธ์คํ๊ฑฐ๋ ์ฌ์ง์
ํ ์ ์๋ ์ฝ๋๋ฅผ ์คํํ๋ ์ฝ๋๋ฅผ ํฌํจํ๋ค. Exit Section(๋๊ฐ๋ ๊ตฌ์ญ) Entry Section์ด ๋ค์ ์คํ ์ฐ๋ ๋๊ฐ ์๊ณ ๊ตฌ์ญ์ ๋ค์ด๊ฐ ์ ์์์ ์ ์ ์์ด์ผ ํด์ ํ์ Remainder Section(๋๋จธ์ง ๊ตฌ์ญ) ์ก์ธ์ค๋ฅผ ํด์ ํ ํ, ์ค๋ ๋๋ ์คํํ ๋ค..