Java 1.4

Hi all

I read the following lines in java 1.4 API:

"A thread blocked in one of the select() or select(long) methods may be interrupted by some other thread in one of three ways:

By invoking the selector's wakeup method,

By invoking the selector's close method, or

By invoking the blocked thread's interrupt method, in which case its interrupt status will be set and the selector's wakeup method will be invoked."


I tried to use the wakeup() method from other thread, and it doesn't work, why? how can I do it.

       Thanks
dannyshAsked:
Who is Participating?
 
Jim CakalicConnect With a Mentor Senior Developer/ArchitectCommented:
Go here:
    http://java.sun.com/j2se/1.4/download.html

Choose the SDK version appropriate to your platform. If you are installing on Windows, note that the Installation Instructions (on the same page as the download) says to uninstall any previous version.

Jim
0
 
Jim CakalicSenior Developer/ArchitectCommented:
The 1.4 beta releases had this problem. Are you using the latest 1.4.0_01 release?

Jim
0
 
dannyshAuthor Commented:
Hi Jim cakalic
I am using version 1.4.0-b92. where can I download the latest version 1.4_01?
 
0
 
dannyshAuthor Commented:
Thanks Jim
I download this version and it works fine.
   Danny
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.