Customized Thread pooling

Discussion in 'Java' started by Saverio M., Jul 3, 2006.

  1. Saverio M.

    Saverio M. Guest

    I have built my own (simple) thread manager [TM], but just found java 5 has
    its own.

    I'd like to use the framework's one, but I have a problem:

    my TM calls a shutdown() method for a thread when it has to close it; every
    thread class has its own routines inside the method.

    how can I implement the same functionality using the framework's TM?

    thanks!
    saverio m.



    Inviato da X-Privat.Org - Registrazione gratuita http://www.x-privat.org/join.php
    Saverio M., Jul 3, 2006
    #1
    1. Advertising

  2. Saverio M. wrote:
    > I have built my own (simple) thread manager [TM], but just found java 5 has
    > its own.
    >
    > I'd like to use the framework's one, but I have a problem:
    >
    > my TM calls a shutdown() method for a thread when it has to close it; every
    > thread class has its own routines inside the method.
    >
    > how can I implement the same functionality using the framework's TM?


    I've not yet worked with this framework but from what I know of Doug
    Lea's writing I assume you could deal with sending a special shut down
    task through the queue (assuming that your threads are tasked via a
    queue). HTH

    Kind regards

    robert
    Robert Klemme, Jul 3, 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. Gary

    .net thread pooling problem

    Gary, Aug 7, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    343
  2. S. Justin Gengo

    Re: DropDownlist name customized possible ?

    S. Justin Gengo, Aug 11, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    376
    Lim Siew Cheng
    Aug 12, 2003
  3. Alex K
    Replies:
    0
    Views:
    393
    Alex K
    Aug 11, 2003
  4. sujata

    Regarding Thread pooling

    sujata, Jul 15, 2003, in forum: Python
    Replies:
    1
    Views:
    303
  5. Giovanni Azua

    NIO multiplexing + thread pooling

    Giovanni Azua, Sep 24, 2011, in forum: Java
    Replies:
    16
    Views:
    1,796
    Robert Klemme
    Sep 30, 2011
Loading...

Share This Page