An open API service indexing awesome lists of open source software.

https://github.com/tawfik-s/java-multi-threading

playground for learning multi threading in java
https://github.com/tawfik-s/java-multi-threading

java java-strings lock multithreading semaphore syncronous

Last synced: 7 months ago
JSON representation

playground for learning multi threading in java

Awesome Lists containing this project

README

          

# java-multi-threading
playground for learning multi-threading in java

## thread states diagram
![threadstates.png](images/threadstates.png)

## Deadlock example diagram
![deadlockexample.png](images/deadlockexample.png)

## synchronized collection
The classes in the Java Collections Framework are not thread-safe; that is, their contents may
become corrupted if they are accessed and updated concurrently by multiple threads. You can
protect the data in a collection by locking the collection or by using synchronized collections.
The Collections class provides six static methods

![synchronized_collection.png](images/synchronized_collection.png)