l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2003 Apr 19 14:28

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
[vox-tech] Java Threads: Abort not found...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vox-tech] Java Threads: Abort not found...

On Fri, Apr 18, 2003 at 02:32:15PM -0700, Ken Herron wrote:
> When you're developing for unix, [...]

  Excellent post Ken.

> Threads have a reputation for being difficult to work with. It's true 
> there's a bit of a learning curve, but personally I've never had much 
> trouble with them. They're definitely the wave of the future; java 
> contains sophisticated thread support, and most complex GUI-driven 
> programs are multithreaded. If you aspire to do serious programming 
> you'll probably end up learning them anyway; better to do it now before 
> you develop a lot of bad programming habits.

  All true.
  I'm irritated about Java preventing one thread of forcefully stopping 
another thread... If you start a child thread that makes a blocking call
into something, there doesn't appear to be a way for the parent thread 
to decide the child has taken too long and forcefully abort the child 
thread, or even get it to return from that blocked call.

  In all Java code I've seen that handles this situation the parent
just ignores the stuck child and continues along while the child is
left in limbo land if it ever returns the result will be ignored...
eventually the Java process exhausts resources on all the stuck
children threads.

  If anyone knows of a way for one Java thread to forcefully stop another
from stopping, let me know...


GPG key: http://simons-clan.com/~msimons/gpg/msimons.asc
Fingerprint: 524D A726 77CB 62C9 4D56  8109 E10C 249F B7FA ACBE

Attachment: pgp00016.pgp
Description: PGP signature

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
EDGE Tech Corp.
For donating some give-aways for our meetings.