thread

์Šค๋ ˆ๋“œ ์ƒํƒœ

  • Blocked

    • ์ฐจ๋‹จ ์ƒํƒœ

    • ์Šค๋ ˆ๋“œ๊ฐ€ ๋‹ค๋ฅธ ์Šค๋ ˆ๋“œ์— ์˜ํ•ด ๋™๊ธฐํ™”๋ฝ์„ ์–ป๊ธฐ ์œ„ํ•ด ๊ธฐ๋‹ค๋ฆฌ๋Š” ์ƒํƒœ

  • Waiting

    • ๋Œ€๊ธฐ ์ƒํƒœ

    • ์Šค๋ ˆ๋“œ๊ฐ€ ๋‹ค๋ฅธ ์Šค๋ ˆ๋“œ์˜ ํŠน์ • ์ž‘์—…์ด ์™„๋ฃŒ๋˜๊ธฐ๋ฅผ ๋ฌด๊ธฐํ•œ ๊ธฐ๋‹ค๋ฆฌ๋Š” ์ƒํƒœ

    • wait(), join() ๋ฉ”์„œ๋“œ ํ˜ธ์ถœ ์‹œ.

  • Timed Waiting

    • ์Šค๋ ˆ๋“œ๊ฐ€ ํŠน์ • ์‹œ๊ฐ„ ๋™์•ˆ ๋‹ค๋ฅธ ์Šค๋ ˆ๋“œ์˜ ์ž‘์—…์ด ์™„๋ฃŒ๋˜๊ธฐ๋ฅผ ๊ธฐ๋‹ค๋ฆฌ๋Š” ์ƒํƒœ

    • sleep(long millis), wait(long timeout)

์ฐธ๊ณ 

  • https://www.inflearn.com/course/lecture?courseSlug=%EA%B9%80%EC%98%81%ED%95%9C%EC%9D%98-%EC%8B%A4%EC%A0%84-%EC%9E%90%EB%B0%94-%EA%B3%A0%EA%B8%89-1&unitId=232329

  • https://docs.oracle.com/javase/7/docs/api/java/lang/Thread.html

Last updated