View Single Post
  #5 (permalink)  
Old 10-02-2008, 11:51 PM
masijade masijade is online now
Senior Member
 
Join Date: Jun 2008
Posts: 551
masijade is on a distinguished road
Like I said, not "thread" communication. Use JMS (Java Messaging Service, I believe) or something similar. In other words the one process sends a request to the other and waits on a response.

And no, there is no safe way to "kill" a thread. And the "unsafe" way (with stop) is not likely to help you, especially if you're already having sync issues.

Edit: And, besides, I don't think killing the thread would help you in the first, as the process itself is probably what has all the locks, etc, on the device and those probably wouldn't go away simply by killing the thread that was actually performing the interaction, and so the problem would likely still exist after killing and restarting the thread.
Reply With Quote