Share Solutions

java resolutions and tips and problems

Tuesday, 18 April 2017

Java Threads Issues

Question:
Sometimes threads are not closed or reused by the pool created by ExecutorService.newCachedThread()


Answer:
Don't Rename any of the threads after created , if you do so it will not manged/closed  by Pool . So becareful while doing Thread.currentThread().setName("NEW NAME")
Posted by Java Learning at Tuesday, April 18, 2017 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: Threads, threads not closing
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Popular Posts

  • MessageQueue vs Message Broker
  • Threads in Java
  • javax.net.ssl.SSLProtocolException: handshake alert: unrecognized_name

Topics

  • ►  2019 (3)
    • ►  May (1)
    • ►  April (2)
  • ►  2018 (3)
    • ►  June (1)
    • ►  April (1)
    • ►  January (1)
  • ▼  2017 (9)
    • ►  November (1)
    • ►  September (3)
    • ►  July (1)
    • ►  May (1)
    • ▼  April (1)
      • Java Threads Issues
    • ►  March (2)
  • ►  2016 (18)
    • ►  November (1)
    • ►  October (2)
    • ►  August (1)
    • ►  July (2)
    • ►  June (4)
    • ►  May (2)
    • ►  April (3)
    • ►  March (1)
    • ►  February (1)
    • ►  January (1)
  • ►  2015 (2)
    • ►  December (1)
    • ►  July (1)
  • ►  2014 (21)
    • ►  October (1)
    • ►  September (1)
    • ►  August (3)
    • ►  July (2)
    • ►  June (8)
    • ►  April (4)
    • ►  March (2)
  • ►  2013 (15)
    • ►  October (5)
    • ►  September (1)
    • ►  May (8)
    • ►  January (1)
  • ►  2012 (3)
    • ►  June (3)
  • ►  2011 (3)
    • ►  October (3)

Live Traffic

Followers

Simple theme. Powered by Blogger.