HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

Java Multithreading Tutorial for Beginners #7: How to safely stop a thread ?

7,964 views October 30, 2019 9:12

Watch on YouTube
ChannelGenuine Coder

Description from the creator

In this chapter, we will talk about properly closing a thread. The built-in method Thread.stop() is deprecated and we should implement our own method for closing a thread properly.

It is really important that we properly close a thread, especially if the thread does work on things that can lead to data loss, data inconsistency etc. In this chapter, we will look into a method where we make use of a flag to properly stop a thread if needed.

You can find the source code of this chapter in the following GitHub repository.
github.com/afsalashyana/Java-Multithreading-Tut…

Website:-
genuinecoder.com

#Multithreading
#GenuineCoder
#Java

About this tutorial

Genuine Coder published this 9:12 video tutorial on October 30, 2019. It has been watched 7,964 times on YouTube.

Category
Education
Duration
9:12
Published
October 30, 2019
Views
7,964
Likes
112

Tags

Share

This tutorial in other languages