Skip to content

mariosstm/H2O-Multithreading-Synchronization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

H2O-Multithreading-Synchronization

In Java

There are given 3 threads that have to be synchronized , with the sole purpose of creating H2O molecules.

  • Thread-1: produces a Hydrogen atom
  • Thread-2: produces an Oxygen atom
  • Thread-3: produces a Water Molecule

We have to synchronize these 3 threads and when 100 molecules of water are formed, the program can exit.

About

Synchronize 3 threads without using Semaphores or Decker-Peterson Algorithm in Java.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages