On Apr 8, 2:42 am, Pedro Pinto <kubi...@gmail.com> wrote:
> Hy there,
>
> I'm building an application that creates a thread. This thread creates
> other threads to perform several tasks.
>
> My question is simple. Being this main thread created in a JSP page,
> and still running after the user logs out, how can i get the current
> status of the thread? I would like for the user, when he logs on the
> application, to verify if the thread is active, that is, the current
> status.
>
> I can't seem to be able to get the thread once it is initialized.
>
> Thanks in advance for any help.
>
> Regards
>
> Pedro Pinto
Hi Pedro:
I am not sure if I completely understand your questions.
Examples of thread details that can be listed are:
Thread.getName(), Thread.isAlive() etc; further info at:
http://java.sun.com/j2se/1.5.0/docs/...ng/Thread.html
Why do you want to show the use the status of the thread?