Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: ThreadPool implementation query

  1. #1
    Member
    Join Date
    Mar 2011
    Posts
    114
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default ThreadPool implementation query

    When a thread completes its execution, it will be destroyed.
    In Java thread pool implemenation, how does threads come back to ready state after executing the task.?


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: ThreadPool implementation query

    Can you give an example where the scenario you've suggested is a problem?

  3. #3
    Senior Member
    Join Date
    Jul 2013
    Location
    Europe
    Posts
    666
    Thanks
    0
    Thanked 121 Times in 105 Posts

    Default Re: ThreadPool implementation query

    If you are curious about implementation of standard classes you can always have a look at the source code.
    All standard classes of java are open source.

    For example, you could start here:
    GC: ThreadPoolExecutor - java.util.concurrent.ThreadPoolExecutor (.java) - GrepCode Class Source

Similar Threads

  1. query
    By cnshah9270 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: January 24th, 2014, 09:32 AM
  2. SQL Query
    By mija in forum JDBC & Databases
    Replies: 13
    Last Post: December 20th, 2012, 07:23 PM
  3. From query to JTable
    By drimades in forum JDBC & Databases
    Replies: 2
    Last Post: March 7th, 2012, 10:43 AM
  4. update query is firing first then insert query
    By salmondavid88 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 8th, 2011, 10:15 AM
  5. Query
    By amol_kale in forum JDBC & Databases
    Replies: 0
    Last Post: February 18th, 2011, 07:04 AM

Tags for this Thread