Solved

Java 1.4

Posted on 2002-06-13
4
193 Views
Last Modified: 2010-03-31
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
0
Comment
Question by:dannysh
  • 2
  • 2
4 Comments
 
LVL 19

Expert Comment

by:Jim Cakalic
ID: 7076105
The 1.4 beta releases had this problem. Are you using the latest 1.4.0_01 release?

Jim
0
 

Author Comment

by:dannysh
ID: 7076111
Hi Jim cakalic
I am using version 1.4.0-b92. where can I download the latest version 1.4_01?
 
0
 
LVL 19

Accepted Solution

by:
Jim Cakalic earned 40 total points
ID: 7076215
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
 

Author Comment

by:dannysh
ID: 7081202
Thanks Jim
I download this version and it works fine.
   Danny
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

939 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question