High Definition Standard Definition Theater
Video id : s8IYV2_GH4o
ImmersiveAmbientModecolor: #f1f1f1 (color 1)
Video Format : (720p) openh264 ( https://github.com/cisco/openh264) mp4a.40.2 | 44100Hz
Audio Format: 140 ( High )
PokeEncryptID: 44369d131b99f0cf07c4b062183d2d9535829495e6d590bc2e094a42a831190d819cd9ff19a514e698834629fd2481e8
Proxy : eu-proxy.poketube.fun - refresh the page to change the proxy location
Date : 1731603717341 - unknown on Apple WebKit
Mystery text : czhJWVYyX0dING8gaSAgbG92ICB1IGV1LXByb3h5LnBva2V0dWJlLmZ1bg==
143 : true
Running 10 Millions Threads in 7 Seconds | Java Virtual Threads #javamultithreading #java
Jump to Connections
20 Views • Aug 19, 2023 • Click to toggle off description
Full Video Link :    • Understanding Java Virtual Threads | ...  

What is a Virtual Thread?
Like a platform thread, a virtual thread is also an instance of java.lang.Thread. However, a virtual thread isn't tied to a specific OS thread. A virtual thread still runs code on an OS thread. However, when code running in a virtual thread calls a blocking I/O operation, the Java runtime suspends the virtual thread until it can be resumed. The OS thread associated with the suspended virtual thread is now free to perform operations for other virtual threads.

Virtual threads are implemented in a similar way to virtual memory. To simulate a lot of memory, an operating system maps a large virtual address space to a limited amount of RAM. Similarly, to simulate a lot of threads, the Java runtime maps a large number of virtual threads to a small number of OS threads. Unlike platform threads, virtual threads typically have a shallow call stack, performing as few as a single HTTP client call or a single JDBC query. Although virtual threads support thread-local variables, you should carefully consider using them because a single JVM might support millions of virtual threads. Virtual threads are suitable for running tasks that spend most of the time blocked, often waiting for I/O operations to complete. However, they aren't intended for long-running CPU-intensive operations.

JEP : openjdk.org/jeps/444
OpenJDK : openjdk.org/

Tags : #java #openjdk #jdk20 #jdk21 #jdk19 #java #javabasics #javaconcepts #javaprogramming #javamultithreading #javainterviewquestions
Metadata And Engagement

Views : 20
Genre: Science & Technology
License: Standard YouTube License
Uploaded At Aug 19, 2023 ^^


warning: returnyoutubedislikes may not be accurate, this is just an estiment ehe :3
Rating : 5 (0/4 LTDR)

100.00% of the users lieked the video!!
0.00% of the users dislieked the video!!
User score: 100.00- Masterpiece Video

RYD date created : 2023-08-20T03:13:17.768909Z
See in json
Connections
Nyo connections found on the description ;_; report an issue lol

4 Comments

Top Comments of this video!! :3

@CodingMaster-pf8je

1 year ago

how to use them in spring boot projects

2 |

Go To Top