2021/05/16 1

F008 - Garbage Collector

โœ๏ธ ์ €๋ฒˆ ์‹œ๊ฐ„์— ๊ณต๋ถ€ํ–ˆ๋˜ JVM ๋‚ด์šฉ๊ณผ ์—ฐ๊ฒฐ๋˜๋Š” ์ด์œ ๋กœ Garbage Collector(์ดํ•˜ GC)์— ๋Œ€ํ•ด ๊ณต๋ถ€ํ•ด๋ณด๋ ค๊ณ  ํ•œ๋‹ค. Reference Type ๊ณผ Heap Memory๋ฅผ ๊ณต๋ถ€ํ•˜๋ฉด์„œ Heap Memory ๋‚ด์— ์กด์žฌํ•˜๋Š” ๊ฐ์ฒด๋ฅผ ์ฐธ์กฐํ•˜๋Š” ๊ณณ์ด ์—†์„ ๋•Œ GC๊ฐ€ ์ด๋ฅผ ์ฒ˜๋ฆฌํ•ด์ค€๋‹ค๋Š” ๊ฒƒ์€ ์กฐ๊ธˆ์ด๋‚˜๋งˆ ์ดํ•ดํ–ˆ๋‹ค. ๊ทธ๋ ‡๋‹ค๋ฉด ์–ด๋–ค ์‹œ์ ์—, ์–ด๋–ค ๋ฐฉ๋ฒ•์œผ๋กœ GC๋Š” ๋ฉ”๋ชจ๋ฆฌ๋ฅผ ์ •๋ฆฌํ•ด์ฃผ๋Š”๊ฑธ๊นŒ? ์ด๋ฒˆ ์‹œ๊ฐ„์„ ํ†ตํ•ด ์•Œ์•„๋ณด์ž! Un-Managed Language, Managed Language ๋งŽ์€ ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์–ธ์–ด๋“ค์€ Mangaed Language, Un-Managed Language ๋กœ ๋‚˜๋‰˜์–ด ๊ตฌ๋ถ„๋  ์ˆ˜ ์žˆ๋‹ค. ์ด ๋‘˜์˜ ์˜๋ฏธ๋Š” ๋ฌด์—‡์„ ๋œปํ•˜๋Š”๊ฑธ๊นŒ? ๊ฐœ๋ฐœ์ž๊ฐ€ ์ง์ ‘ ๋ฉ”๋ชจ๋ฆฌ๋ฅผ ๊ด€์—ฌํ•ด์•ผ ํ•œ๋‹ค๋ฉด Un-Managed Language, ..

Programming/Java 2021.05.16