Learn Java Programming - Synchronized Static Method Tutorial

Pubblicato il: 23 dicembre 2015
sul canale di: Daniel Ross
3,879
32

The synchronized keyword can be applied to a method or a block of code. The primary purpose of the synchronized keyword is to lock a shared resource to a single thread. The technical term for locking a resource is called an intrinsic lock or monitor lock. In this tutorial I will demonstrate populating an ArrayList from multiple threads using the non-thread-safe add() method. This tutorial will demonstrate applying the synchronized keyword to a static method and a code block to make our method thread safe.


In questa pagina del sito puoi guardare il video online Learn Java Programming - Synchronized Static Method Tutorial della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Daniel Ross 23 dicembre 2015, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 3,879 volte e gli è piaciuto 32 spettatori. Buona visione!