Suspending threads by ThreadPoolExecutor

Discussion in 'Java' started by Maciej, Oct 27, 2006.

  1. Maciej

    Maciej Guest

    Hi all,

    Does ThreadPoolExecutor may suspend idle threads ?
    I wonder wether suspended threads eat less resources than active ?

    I imagine the solution when ThreadPoolExecutore suspends each idle
    threat after idleness of 60 seconds and after next 60 seconds of being
    suspend the thread got killed ?

    Is it reasonable ?

    Regards,

    Maciej
     
    Maciej, Oct 27, 2006
    #1
    1. Advertising

  2. Maciej wrote:
    >
    > Does ThreadPoolExecutor may suspend idle threads ?
    > I wonder wether suspended threads eat less resources than active ?


    If the thread is idle, what would the point of suspend be?
    Thread.suspend is deprecated for very good reason.

    Tom Hawtin
     
    Thomas Hawtin, Oct 27, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jeffrey Hiess

    How can I "peek" at the keyboard without suspending?

    Jeffrey Hiess, Nov 26, 2003, in forum: C Programming
    Replies:
    11
    Views:
    722
    Irrwahn Grausewitz
    Dec 2, 2003
  2. Replies:
    8
    Views:
    1,219
  3. pksiazek
    Replies:
    2
    Views:
    1,658
    pksiazek
    Oct 15, 2007
  4. Replies:
    5
    Views:
    411
    Arne Vajhøj
    Jun 26, 2008
  5. Ethan
    Replies:
    4
    Views:
    529
    Kevin McMurtrie
    Jun 30, 2010
Loading...

Share This Page