[6473] in java-interest

home help back first fref pref prev next nref lref last post

A sleeing Thread

daemon@ATHENA.MIT.EDU (Ahmed Abdel Hady)
Sun Mar 31 17:09:43 1996

Date:         Sun, 31 Mar 1996 00:25:34 -0700
Reply-To: Java Interest <JAVA-INTEREST@JAVASOFT.COM>
From: Ahmed Abdel Hady <ahady@IDSC.GOV.EG>
To: Multiple recipients of list JAVA-INTEREST
              <JAVA-INTEREST@JAVASOFT.COM>

Hello All,

I have a little question, please..

One have to catch an Interrupted Exception when calling
Thread.sleep();

        try(Thread.sleep(10000);}
        catch(InterruptedException ex){....}

Is there any mean to throw this Exception from outside the
thread to teminate its sleeping period.




TIA
Ahmed

-----
This message has been forwarded via the JAVA-INTEREST
mailing list.  In order to unsubscribe from this list, send a message to
listserv@javasoft.com with the command 'signoff JAVA-INTEREST' in
the message body (not in the subject line).

-----
This message has been forwarded via the JAVA-INTEREST
mailing list.  In order to unsubscribe from this list, send a message to
listserv@javasoft.com with the command 'signoff JAVA-INTEREST' in
the message body (not in the subject line).

-----
This message has been forwarded via the JAVA-INTEREST
mailing list.  In order to unsubscribe from this list, send a message to
listserv@javasoft.com with the command 'signoff JAVA-INTEREST' in
the message body (not in the subject line).

home help back first fref pref prev next nref lref last post