# "JEP 444: 가상 쓰레드" JDK 21에 도입, 새로운 동시성의 시대 시작

> Clean Markdown view of GeekNews topic #8953. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=8953](https://news.hada.io/topic?id=8953)
- GeekNews Markdown: [https://news.hada.io/topic/8953.md](https://news.hada.io/topic/8953.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2023-04-14T10:17:02+09:00
- Updated: 2023-04-14T10:17:02+09:00
- Original source: [infoq.com](https://www.infoq.com/news/2023/04/virtual-threads-arrives-jdk21/)
- Points: 8
- Comments: 2

## Topic Body

- 자바 플랫폼에서 고성능 동시성 어플리케이션을 위한 경량 쓰레드인 Virtual Thread를 지원   
  - JDK 19의 JEP 425, JDK 20의 JEP 436 두개의 프리뷰에 이은 최종   
- 이제 Java는 2개의 쓰레드를 지원: 플랫폼 쓰레드와 가상 쓰레드   
  - 플랫폼 쓰레드는 OS쓰레드에 대한 1대1 매핑이고, 가상 쓰레드는 자바가 제공하는 경량 쓰레드   
  - 하나의 OS 쓰레드 내에서 1만개의 가상 쓰레드 동시 실행 가능   
- 플랫폼 쓰레드와 마찬가지로 ThreadLocal/InheritableThreadLocal 변수 지원   
- java.util.concurrent, java.net, java.nio.channels 패키지등도 가상 쓰레드 지원   
- JNI는 IsVirtualThread 함수 추가

## Comments



### Comment 15723

- Author: [hidden]
- Created: 2023-04-18T15:23:17+09:00
- Points: 1

[숨김 처리된 댓글입니다]

### Comment 15666

- Author: clickin
- Created: 2023-04-14T15:08:42+09:00
- Points: 1

Project Loom 이라는 이름으로 처음 나올 때는 엄청 오래 걸릴 듯했는데 올해 안에 볼 줄은 몰랐네요
