Concurrency on the JVM — Atomic execution / Synchronized (with Scala🐶)

Race condition 🏎️

is a phenomenon in which the output of a concurrent program depends on the execution schedule of the statements in the program.

Atomic execution ⚛️

Atomic execution of a block of code means that the individual statements in that block of code executed by one thread cannot interleave with those statements executed by another thread.

My Conclusions 🤹🏼

- The synchronized statement is one of the fundamental mechanisms for inter-thread communication in Scala and on the JVM.

Bibliography 🕵🏿‍♂️



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Francisco Perrotta

Francisco Perrotta

Functional programming became my north, I am passionate about continuing along this path.