wadiemendja / Animated-multithreading-example

moving multiple shapes separately at the same time

Home Page:https://wadiemendja.blogspot.com/2020/06/multithreading-example-in-java.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Animated-multithreading-example

  • Task by task :

alt text

  • All tasks :

alt text

Multithreading in java is a process of executing multiple threads simultaneously.

A thread is a lightweight sub-process, the smallest unit of processing. Multiprocessing and multithreading, both are used to achieve multitasking.

However, we use multithreading than multiprocessing because threads use a shared memory area. They don't allocate separate memory area so saves memory, and context-switching between the threads takes less time than process.

Java Multithreading is mostly used in games, animation, etc.

About

moving multiple shapes separately at the same time

https://wadiemendja.blogspot.com/2020/06/multithreading-example-in-java.html

License:MIT License


Languages

Language:Java 100.0%