Java - Interview
Java Interview Java Script
Home
Multithreading
Hibernate
Spring
Android
Miscellaneous
TrackWise
TrackWise Tutorial
TrackWise Interview
SCJP
Object
Abstract
Array
Class
Constructor
Exception
Interview
Java
Spring
Hibernate
JSF
PL / SQL
JSP / Servlet
Web Services
Designing Patterns
Others
>>>
ERROR
Offensive Security
Struts 2
JSF
PHP
JDBC
JAVA
AWS
KOTLIN
Web Services
Saturday, 15 July 2017
How do we stop a thread in Java?
To stop a thread one can use a volatile reference pointing to the current thread that can be set to null by other threads to indicate the current thread should stop its execution:
--
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment