remove

2000-05-16 Thread Matt Sexton

remove


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Thread and Garbage collection

2000-05-16 Thread yangyuex

Hi

I have several threads in one hashtable.
When I remove one of them, whether this thread still  consume CPU etc
resources?
That's to say, if I will not need one thread, whether I must stop or
destory it explictly or
just remove it from hashtable for garbage collection?
I am not sure how JVM schedules multiple threads.

Thanks very much!
yangyuexiang


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




using jdb within Emacs/JDE

2000-05-16 Thread Man Chi Ly

my environment:
Red Hat 6.2 stock
latest blackdown JDK 1.2.2 (RC4 I believe)
GNU Emacs 20.5.1
Emacs/JDE 2.1.5

The User's Guide lays out pretty clearly how to use jdb within
emacs. However, I've had no luck doing so.. I can run jdb within any shell
(including a shell within emacs) so it works; it's too tedious w/out emacs
key-bindings though.

When I try to run the debugger, it just stalls.. here's what it looks
like:

cd /home/mly/proj-mediator/java/
jdb HelloWorld

Initializing jdb...
> Deferring breakpoint HelloWorld.main.
It will be set after the class is loaded.
> run HelloWorld
> 
VM Started: Set deferred breakpoint request HelloWorld:3


Are there any "gotchas" involved? On a different note, I've used IBM
VAJava in the past, and its debugger is credible. However, it's not an
option in my current environment. I'm wondering if JBuilder Foundation has
a strong debugger?

TIA.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Thread and Garbage collection

2000-05-16 Thread Christopher Smith

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, May 17, 2000 at 11:27:00AM +0700, yangyuex wrote:
> I have several threads in one hashtable.
> When I remove one of them, whether this thread still  consume CPU etc
> resources?
> That's to say, if I will not need one thread, whether I must stop or
> destory it explictly or
> just remove it from hashtable for garbage collection?
> I am not sure how JVM schedules multiple threads.

Before the Thread can be garbage collected, it must stop
executing. The Java API docs for java.lang.Thread describe the
different circumstances under which this can occur. Beyond that, there
must not be a reference to the Thread instance which is accessible
from any other Thread which hasn't completed execution.

- --Chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.5 and Gnu Privacy Guard 

iD8DBQE5IjUGfrrCpthD+UYRAr5kAJ9n5TmYaMe8p4btEN3izar9ZTvBwACg2QtS
GUTzvgrlAoCjUZ7On2U7akE=
=auUr
-END PGP SIGNATURE-


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]