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. Advertisements

  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. Advertisements

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:
    415
  2. S. Justin Gengo

    Re: DropDownlist name customized possible ?

    S. Justin Gengo, Aug 11, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    521
    Lim Siew Cheng
    Aug 12, 2003
  3. Brian Henry

    ASP.NET customized error page

    Brian Henry, Oct 31, 2003, in forum: ASP .Net
    Replies:
    4
    Views:
    851
    Guest
    Nov 1, 2003
  4. =?Utf-8?B?VElCTQ==?=

    Customized RadioButtonList

    =?Utf-8?B?VElCTQ==?=, Jun 11, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    467
    =?Utf-8?B?VElCTQ==?=
    Jun 11, 2004
  5. xs

    Customized web pages

    xs, Jul 27, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    407
    Bryant Hankins
    Jul 27, 2004
  6. =?Utf-8?B?UmV6YSBTb2xvdWtp?=

    Customized dynamic Datagrid component - help please

    =?Utf-8?B?UmV6YSBTb2xvdWtp?=, Mar 8, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    377
    Elton Wang
    Mar 9, 2005
  7. sujata

    Regarding Thread pooling

    sujata, Jul 15, 2003, in forum: Python
    Replies:
    1
    Views:
    363
  8. Giovanni Azua

    NIO multiplexing + thread pooling

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