Link to home
Start Free TrialLog in
Avatar of dannysh
dannysh

asked on

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
Avatar of Jim Cakalic
Jim Cakalic
Flag of United States of America image

The 1.4 beta releases had this problem. Are you using the latest 1.4.0_01 release?

Jim
Avatar of dannysh
dannysh

ASKER

Hi Jim cakalic
I am using version 1.4.0-b92. where can I download the latest version 1.4_01?
 
ASKER CERTIFIED SOLUTION
Avatar of Jim Cakalic
Jim Cakalic
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dannysh

ASKER

Thanks Jim
I download this version and it works fine.
   Danny