Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Virtual Thread - 導入の背景と、効果的な使い方 -
Search
Yuichi.Sakuraba
January 21, 2023
Technology
4
680
Virtual Thread - 導入の背景と、効果的な使い方 -
2023.01.21 ブリ会議 発表資料
Yuichi.Sakuraba
January 21, 2023
Tweet
Share
More Decks by Yuichi.Sakuraba
See All by Yuichi.Sakuraba
今こそ、ラムダ式を考える - なぜあなたはラムダ式を苦手と感じるのか
skrb
6
18k
今こそ、ラムダ式を考える - ラムダ式はどうやって動くのか
skrb
7
10k
Project Amberで変わる Javaのプログラミングスタイル
skrb
3
790
String Templateによる文字列補間
skrb
4
2.7k
Virtual Threadの動作と効果的な使い方
skrb
2
480
JVMLSに参加してきた
skrb
1
1.9k
Who's Who in Java
skrb
3
19k
Javaの並列/並行処理の基本
skrb
9
3.2k
Getting Started with Presentation
skrb
1
2.4k
Other Decks in Technology
See All in Technology
UTTC 共催データ分析2daysプログラム
uttc
1
190
睡眠コンペ 1st place solution
unonao
2
300
はじめてのレコメンド〜Amazon Personalizeを使った推薦システム超超超入門〜
sadynitro
0
200
アジリティと両立する AWS のガバナンスコントロール
track3jyo
PRO
3
140
Azure OpenAI Service Dev Day / LLMでできる!使える!生成AIエージェント
masahiro_nishimi
3
1.4k
悩ましきインシデント管理 みてねのケース / Incident management is a tough
kohbis
2
240
これで最後にしたい! Astroと立ち向かう 6度目の個人ブログ再開発
ikumatadokoro
3
120
新規開発でイベントストーミングを実践したら体験が良かった話
sansantech
PRO
1
180
.NET Aspire を始めよう
okazuki
0
200
セキュリティ検出結果をBedrockで読みやすくしてみた
licux
0
400
超個人的な AWS CLI の使い所 - Amazon CloudTrail 編 -
kazzpapa3
4
130
20240726 生成AI Conf 第7回勉強会 - MNTSQ紹介資料
mntsq
0
260
Featured
See All Featured
Designing Dashboards & Data Visualisations in Web Apps
destraynor
226
52k
Ruby is Unlike a Banana
tanoku
96
10k
Creatively Recalculating Your Daily Design Routine
revolveconf
214
11k
Clear Off the Table
cherdarchuk
89
320k
Imperfection Machines: The Place of Print at Facebook
scottboms
262
13k
From Idea to $5000 a Month in 5 Months
shpigford
377
46k
Stop Working from a Prison Cell
hatefulcrawdad
266
20k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
16
3.8k
How GitHub (no longer) Works
holman
306
140k
Statistics for Hackers
jakevdp
792
220k
Why You Should Never Use an ORM
jnunemaker
PRO
51
8.9k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
502
140k
Transcript
- -
• • • • • •
• • • •
• • • →
None
• • • → •
• • • • •
public class ThreadPoolExecutor extends AbstractExecutorService { ... private final class
Worker extends AbstractQueuedSynchronizer implements Runnable { Worker(Runnable firstTask) { setState(-1); this.firstTask = firstTask; this.thread = getThreadFactory().newThread(this); } ...
• • •
• • • • • • •
• • •
• • • • • • •
None
None
None
None
None
int blockingRead(byte[] b, int off, int len, long nanos) throws
IOException { ... // read, no timeout configureSocketNonBlockingIfVirtualThread(); n = tryRead(b, off, len); while (IOStatus.okayToRetry(n) && isOpen()) { park(Net.POLLIN); n = tryRead(b, off, len); } ...
• • • • • • • •
• • • • •
• • • •
• • • •
• • • • • • •
• • • • • • •
- -