• Post Reply Bookmark Topic Watch Topic
  • New Topic

Thread question  RSS feed

 
Timmy Ryan
Ranch Hand
Posts: 63
IntelliJ IDE Java Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys I just need to get something around my head.
I'm learning about threads at the moment.

My question is can an object create only one thread at a time.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not quite clear in which direction the question is aiming, but at any given time there can be (and will be) multiple threads in a JVM. Those will often have been started from different places (i.e., different objects), but it's perfectly possible for an object to create multiple threads. Does that answer the question?
 
Timmy Ryan
Ranch Hand
Posts: 63
IntelliJ IDE Java Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks that answers the question. I was unsure if an object could create multiple threads at the same time.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!