๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

๐“ก๐“ธ๐“ธ๐“ถ5: ๐’ฆ๐‘œ๐“‡๐‘’๐’ถ ๐’ฐ๐“ƒ๐’พ๐“‹/์šด์˜์ฒด์ œ Operating Systems (COSE341)

(2)
[์šด์˜์ฒด์ œ] CH4. CPU Scheduling 1. Basic Concepts Multiprogramming : ์ปดํ“จํ„ฐ์˜ CPU์—์„œ ๋™์‹œ์— ์—ฌ๋Ÿฌ ํ”„๋กœ๊ทธ๋žจ์„ ์‹คํ–‰ํ•˜๋Š” ๊ธฐ์ˆ  multiprogramming์˜ ๋ชฉ์ ์€ CPU utilization์˜ ๊ทน๋Œ€ํ™”์ž„ process๋Š” CPU execution ์ฃผ๊ธฐ์™€ I/O wain ์œผ๋กœ ๊ตฌ์„ฑ๋จ. ์ฆ‰, ํ”„๋กœ์„ธ์Šค๊ฐ€ ์ผ์ • ์‹œ๊ฐ„ ๋™์•ˆ CPU์—์„œ ์‹คํ–‰๋œ ๋‹ค์Œ, ๊ณ„์† ์‹คํ–‰๋˜๊ธฐ ์ „์— I/O ์ž‘์—…์ด ์™„๋ฃŒ๋  ๋•Œ๊นŒ์ง€ ๊ธฐ๋‹ค๋ฆผ. CPU Burst distribution์€ 1) ์งง๊ณ  ๋งŽ์€ cpu burst ์™€ 2) ๊ธธ๊ณ  ์ ์€ cpu burst ๊ฐ€ ์žˆ๋Š”๋ฐ, I/O Bound program์€ ์งง๊ณ  ๋งŽ์€ cpu burst๋ฅผ ๊ฐ€์ง€๋ฉฐ CPU-Bound program์€ ๊ธธ๊ณ  ์ ์€ cpu burst๋ฅผ ๊ฐ€์ง distribution์—์„œ ์™ผ์ชฝ์€ burst du..
[์šด์˜์ฒด์ œ] CH3. Threads & Concurrency 0. Overview 1) Thread๋ž€ : A basic unit of CPU utilization - thread ID, a program counter (PC), a register set, and a stack ์œผ๋กœ ๊ตฌ์„ฑ๋จ - ๊ฐ™์€ process์˜ ๋‹ค๋ฅธ ์“ฐ๋ ˆ๋“œ์™€ code section, data section, and other operating-system resources ๊ณต์œ ํ•จ 2) Single / Multithreaded Processes ๊ฒฝ์šฐ์— ๋”ฐ๋ผ ๋‹จ์ผ ์‘์šฉ ํ”„๋กœ๊ทธ๋žจ์ด ์—ฌ๋Ÿฌ ๊ฐœ์˜ ์œ ์‚ฌํ•œ ์ž‘์—…์„ ์ˆ˜ํ–‰ํ•ด์•ผ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด, ์›น ์„œ๋ฒ„๋Š” ์›น ํŽ˜์ด์ง€, ์ด๋ฏธ์ง€, ์†Œ๋ฆฌ ๋“ฑ์— ๋Œ€ํ•œ ์š”์ฒญ์„ ์ˆ˜๋ฝํ•ด์•ผ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ด๋Ÿฌํ•œ ์š”์ฒญ์„ ์ฒ˜๋ฆฌํ•˜๋Š” ํ•œ ๊ฐ€์ง€ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•์€ ์„œ๋ฒ„๋ฅผ ํด๋ผ์ด์–ธํŠธ ์š”์ฒญ์„ ์ˆ˜๋ฝ..