CS-Oh-Yeahs / os_study

์šด์˜์ฒด์ œ์™€ ์ •๋ณด๊ธฐ์ˆ ์˜ ์›๋ฆฌ ์Šคํ„ฐ๋””
7 stars 1 forks source link

๐Ÿค” [CH04]Q3 IPC ๋ฉ”์ปค๋‹ˆ์ฆ˜ ์ค‘ ๊ฐ„์ ‘์ ์œผ๋กœ ๋ฉ”์„ธ์ง€๋ฅผ ์ „๋‹ฌํ•˜๋Š” ๋ฐฉ์‹์€ ์–ด๋– ํ•œ ๋ฉ”์„ธ์ง• ๊ธฐ๋ฒ•์ธ์ง€ ๋Œ€๋‹ตํ•ด์ฃผ์„ธ์š”. #44

Closed gzgzg2 closed 2 years ago

codenamehee commented 2 years ago

IPC ๋ฉ”์ปค๋‹ˆ์ฆ˜์—๋Š” ๋ฉ”์‹œ์ง€ ์ „๋‹ฌ ๋ฐฉ์‹๊ณผ ๊ณต์œ ๋ฉ”๋ชจ๋ฆฌ ๋ฐฉ์‹ ๋‘๊ฐ€์ง€๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค. ๊ทธ ์ค‘, ๊ฐ„์ ‘์ ์œผ๋กœ ๋ฉ”์‹œ์ง€๋ฅผ ์ „๋‹ฌํ•˜๋Š” ๋ฐฉ์‹์€ ๋ฉ”์‹œ์ง€ ์ „๋‹ฌ ๋ฐฉ์‹ ์ค‘ ๊ฐ„์ ‘ ํ†ต์‹ ์— ํ•ด๋‹นํ•ฉ๋‹ˆ๋‹ค. ์ด ๊ฒฝ์šฐ ํ”„๋กœ์„ธ์Šค๋“ค์ด ํ†ต์‹ ์„ ํ•  ๋•Œ, ์„œ๋กœ ๊ณต์œ ํ•˜๊ณ  ์žˆ๋Š” ๋ฉ”์ผ๋ฐ•์Šค๋‚˜ ํฌํŠธ๋ฅผ ํ†ตํ•ด ๋ฉ”์‹œ์ง€๋ฅผ ์ฃผ๊ณ  ๋ฐ›์œผ๋ฉฐ ํ†ต์‹ ํ•ฉ๋‹ˆ๋‹ค.

dianestar commented 2 years ago

IPC์˜ ๊ธฐ๋ฒ• ์ค‘ Message Passing ๊ธฐ๋ฒ•์—๋Š” direct/indrect ๋ฐฉ์‹์ด ์žˆ๋Š”๋ฐ, ์ด ์ค‘ ๊ฐ„์ ‘์ ์œผ๋กœ ๋ฉ”์‹œ์ง€๋ฅผ ์ „๋‹ฌํ•˜๋Š” ๋ฐฉ์‹์ธ indirect ๋ฐฉ์‹์€ ํ†ต์‹ ํ•˜๋ ค๋Š” ํ”„๋กœ์„ธ์Šค์˜ ์ด๋ฆ„์„ ๋ช…์‹œ์ ์œผ๋กœ ํ‘œ์‹œํ•˜์ง€ ์•Š๊ณ , mailbox๋‚˜ port๋ฅผ ํ†ตํ•ด ๊ฐ„์ ‘์ ์œผ๋กœ ์ „๋‹ฌํ•ฉ๋‹ˆ๋‹ค. ํ•ด๋‹น mailbox๋‚˜ port๋ฅผ ๊ณต์œ ํ•˜๋Š” ํ”„๋กœ์„ธ์Šค ๊ฐ„์˜ ํ†ต์‹ ์ด ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค.

gzgzg2 commented 2 years ago

ย Indirect Communication ๊ธฐ๋ฒ• ์ž…๋‹ˆ๋‹ค. Indirect Communication์€ ์ง์ ‘์ ์œผ๋กœ ๋ฉ”์„ธ์ง€๋ฅผ ์ „๋‹ฌํ•˜์ง€ ์•Š๊ณ , port๋‚˜ mailbox๋ฅผ ํ†ตํ•ด ๋ฉ”์„ธ์ง€๋ฅผ ์ฃผ๊ณ ๋ฐ›์Šต๋‹ˆ๋‹ค.