---
title: "Discussion on \"What Is Multi-threading?\" | Hashnode"
description: "Discussion on \"What Is Multi-threading?\". In computer architecture, multithreading is a computer processing unit **(CPU)** having multiple threads of execution inside the same application."
url: "https://hashnode.com/posts/what-is-multi-threading/62a671c5165482d2b3eef5e2"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [What Is Multi-threading?](https://tekhthings.com/what-is-multi-threading?utm_source=hashnode&utm_medium=feed)

In computer architecture, multithreading is a computer processing unit \*\*(CPU)\*\* having multiple threads of execution inside the same application.

Jun 12, 2022 · 6 min read · tekhthings.com  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#programming-languages](https://hashnode.com/tag/programming-languages)
-   [#programming-tips](https://hashnode.com/tag/programming-tips)

## Written by

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

@Aniel1089

  
[View profile](https://hashnode.com/@Aniel1089)

Software Engineer || Java Engineer || React Developer

## Responses 1

Markdown supported · ⌘↵ to post

[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 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.
