Skip to content

A simple Java project demonstrating multithreading with Runnable, Callable, and ExecutorService. Explore concurrent tasks like printing numbers, efficient thread pools, and calculating sums.

Notifications You must be signed in to change notification settings

lakshaygarg0007/MultiThreadingInJava

Repository files navigation

MultiThreading In Java

This is a simple Java project that demonstrates the use of multithreading concepts including Runnable, Callable, and ExecutorService to perform various tasks concurrently. In this project, we have implemented three different multithreading examples:

1.Runnable Example: Multiple threads are created to print numbers from 1 to 100 concurrently.

2.ExecutorService Example: A thread pool with 10 threads is used to generate numbers from 1 to 100 concurrently.

3.Callable Example: We use Callable to generate random numbers and then sum them up.

About

A simple Java project demonstrating multithreading with Runnable, Callable, and ExecutorService. Explore concurrent tasks like printing numbers, efficient thread pools, and calculating sums.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages