Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
    Bookmark Topic Watch Topic
  • New Topic

Some threading issues !!  RSS feed

 
Saurabh Agrawal
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hello friends ,
I have some doubts about the threads .So i hope you guys help me out in that for interview :
1) How many threads we can create ?
2)How do thread's stop method work ? Can i restart my stopped thread ?
3) if i create a thread & then null ou the reference to it, what happens to the thread ? does it get interrupted or what ?
4) how should i stop a thread so that i can start a new thread in its place ?
 
Ellen Zhao
Ranch Hand
Posts: 581
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
moving this to the Threads forum, although I think a tutorial like this answer most of your basic questions.
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Report post to moderator
Since this is a duplicate, please follow up here. Thanks.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!