i having thread class ,each time when i am calling it creates new object and run new thread, i want to access specified thread variable from another class. is it possible??? help me....
sankubha
0
Light Poster
Recommended Answers
Jump to PostYes, its possible. But without seeing your code and some more detail on exactly what you need to do, it's not possible to give an exact answer.
Jump to Postsince it extends the class
public server(){ desk. ... }
should do the trick. make sure it's instantiated first, though, meaning your run method must run before your server constructor (which is not possible) or you must instantiate your desk variable in your server constructor
All 6 Replies
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
sankubha
0
Light Poster
stultuske
1,116
Posting Maven
Featured Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
mKorbel
274
Veteran Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.