• Post Reply Bookmark Topic Watch Topic
  • New Topic

Thread Verification

 
Thabo Matjuda
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey guys. I just need some verification. When someone says, "Put a while loop in a thread." Does that mean something lyk this:

class Whateva implements Runnable {

public Whateva() {
//mayb start thread here
}

public void run() {
//and the while loop here
while(true) {
}
}

if not, then someone please give me an example based on my question.
 
Henry Wong
author
Sheriff
Posts: 22528
109
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When someone says, "Put a while loop in a thread." Does that mean ...



I guess.... but would it not be better to get the clarification from the person who caused the confusion?

Henry
 
Thabo Matjuda
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, but the forum helped by being faster in answering my question rather than having to wait for a person to reply while at work the following day. Thank you.
 
Thabo Matjuda
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, but the forum helped by being faster in answering my question rather than having to wait for a person to reply while at work the following day. Thank you.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!