From the course: Java Threads Demystified by Pearson
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Threads and synchronization - Java Tutorial
From the course: Java Threads Demystified by Pearson
Threads and synchronization
What is it, and this is going to be really just a brief introduction to JavaThreads. So JavaThreads, well, they now come in two sizes. Since we have virtual threads, which I will talk about briefly at the end of this talk, we can't any longer talk about JavaThreads and always know what we mean, so we're going to have to talk about two different kinds of threads. The new kind, which has been in, went fine, I think, in Java 21, were virtual threads. But what we're gonna talk about here are what we call platform, what are now called platform threads, which are simply a wrap, well, simply, essentially a wrapper around native operating system threads. And they have most of the characteristics in terms of the amount of memory they require and the startup time and so on, that they inherit from the operating system because it's Java just making operating system threads look like Java threads. So the model that Java uses for platform threads is that conceptually, I like to say that like a…