A couple very basic multi-threaded scripts in Java I wrote for practice. These examples are based on the examples from this excellent Udemy course. I would highly recommend it.
create
a simple script showing the ways threads are initializedvault
one thread trys to stop another thread from hacking a vaultsimpleMath
speeding up a large computation using threadsimageProcessing
a multithreading script to turn a color scale image to a grayscale imagebasicSync
adding examples of how to use the synchronized keywordfree.lock
an example of a lock free stackexamples.lock
an example ofReadWriteReentrantLock