Technology News, Online Income, Gadgets, Reviews

Technology News, Gadgets and Reviews



Total Pageviews

Thursday, January 12, 2023

Java Features (Multithreaded)

   Java Is Multithreaded

A thread is like a separate program, executing concurrently. We can write Java programs that deal with many tasks at once by defining multiple threads.


Multithreading is a Java feature that allows concurrent execution of two or more parts of a program for maximum  utilization of CPU. Each part of such program is called a thread. So, threads are light-weight processes within a process. 

The main advantage of multi-threading is that it doesn't occupy memory for each thread. It shares a common memory area. Threads are important for multi-media, Web applications, so on.

No comments:

Post a Comment