TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
pelledoca
NA
9
0
Local variable passed to thread. May it get reclaimed by GC before thread completion??? How to avoid it???
Aug 26 2004 6:17 AM
Hello, my questiong is, I believe, very simple. I have a method and inside it I'm passing a local variable (of a reference type) to a newly created thread (created inside the method itself). Since the method may end while the thread may not have yet completed its work, I was wondering if anything must be done to avoid the garbage collector reclaiming the variable before the thread has completed. Thx. Bob Rock
Reply
Answers (
2
)
How update?
Printing