Jump to content
Sign in to follow this  
satyricon11

Linear data structures and multi threading

Recommended Posts

I'm trying to write a program (in java) that pings each possible IP address on a sub net to see if its alive, and if it is, store it in a sorted linked list to be displayed in a JTable. As of right now I'm using the Thread class instead of the Runnable interface and I'm getting a lot of null pointer exceptions. Whenever I run this program without multi threading the program works fine. Ive done a bit of research and so far the material seems to be rather complex and above my understanding. I'm wondering if accessing the data structure from several threads is my issue, and if so, how do I get around this?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×