---
title: "Comment by Shai Almog on \"What Is Multi-threading?\" | Hashnode"
description: "Nicely said! One additional piece of information to include would be the three types of threads through Java&#39;s history: Green - the first version of Java ha"
url: "https://hashnode.com/posts/what-is-multi-threading/62a671c5165482d2b3eef5e2/comment/62a69dee165482d2b3eef9a8"
---

[Discussion](https://hashnode.com/posts/what-is-multi-threading/62a671c5165482d2b3eef5e2)

Comment [What Is Multi-threading?](https://hashnode.com/posts/what-is-multi-threading/62a671c5165482d2b3eef5e2)

[Shai Almog](https://hashnode.com/@talktotheduck)

[Jun 13, 2022](https://hashnode.com/posts/what-is-multi-threading/62a671c5165482d2b3eef5e2/comment/62a69dee165482d2b3eef9a8)

Nicely said!

One additional piece of information to include would be the three types of threads through Java's history:

-   Green - the first version of Java had green threads. Which means the process itself was single threaded and simulated "real threads". This meant the CPU cores weren't used effectively.
    
-   Native - Very early versions of Java moved to native threads which means one Java thread == OS native thread. This means the CPU cores can be used properly but it also means you can't create too many threads... OS threads have a cost.
    
-   Virtual - With project Loom which is now in preview Java introduces a new type of thread: virtual. Which merges these two concepts. You will have what is effectively a green thread on top of an OS native thread. This way threads become very cheap but also use the CPU cores completely. There are some nuances here but the scale and elaborate nature of this feature are unique to the JVM. It's a pretty spectacular feature.
    

[segun osiki](https://hashnode.com/@Aniel1089)

[Jun 13, 2022](https://hashnode.com/posts/what-is-multi-threading/62a671c5165482d2b3eef5e2/comment/62a69dee165482d2b3eef9a8#reply-62a6d8e2165482d2b3ef0193)

Well done, you just made me learn about green and native thread now from the earliest version of Java. I am definitely researching more about the Java threads via its history.

Thanks for the info.

[segun osiki](https://hashnode.com/@Aniel1089)

[Jun 14, 2022](https://hashnode.com/posts/what-is-multi-threading/62a671c5165482d2b3eef5e2/comment/62a69dee165482d2b3eef9a8#reply-62a82404ddf27ef9ab05f1cb)

Dear Shai, I did make some more research on the various types of Java threads based on your comment on my post and it was an eye-opener, thanks for the comment once again.

I like to ask how long have you been a Java Developer, and what will be your advice as to the best way to become a better Java Developer?

[Shai Almog](https://hashnode.com/@talktotheduck)

[Jun 14, 2022](https://hashnode.com/posts/what-is-multi-threading/62a671c5165482d2b3eef5e2/comment/62a69dee165482d2b3eef9a8#reply-62a82558ddf27ef9ab05f222)

[segun osiki](https://hashnode.com/@Aniel1089) I've been a Java developer since the first beta 27 or so years ago. I'm not sure what's the best way since I took a path that isn't common. I wrote JVMs both at Sun and independently as part of my startup.

I think curiosity and keeping up is the thing. Accepting that we can't possibly know everything is also important. I learn a lot about Java all the time despite all of my experience...

[segun osiki](https://hashnode.com/@Aniel1089)

[Jun 17, 2022](https://hashnode.com/posts/what-is-multi-threading/62a671c5165482d2b3eef5e2/comment/62a69dee165482d2b3eef9a8#reply-62ac74d52b2b09182b658b24)

[Shai Almog](https://hashnode.com/@talktotheduck) Thanks for the advice, you have definitely come a long way as a Java developer.

I hope to learn more from you. You just gained one Twitter follower.

Thanks once again for the reply.
