Learn Java Programming - Synchronized Static Method Tutorial

Опубликовано: 23 Декабрь 2015
на канале: 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.


На этой странице сайта вы можете посмотреть видео онлайн Learn Java Programming - Synchronized Static Method Tutorial длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Daniel Ross 23 Декабрь 2015, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 3,879 раз и оно понравилось 32 зрителям. Приятного просмотра!