Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #8668
| From | 光 署 <shuguang008@gmail.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | java Thread class |
| Date | 2011-10-09 20:07 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <319384c2-13c3-45f1-a9be-2be669a2204b@r8g2000prh.googlegroups.com> (permalink) |
hi all, I have a Thread named r1 , why I can not write "
r1.start();r1.start();". when I write "r1.start(); r1.start();" there
was an error that "IllegalThreadStateException".
r1.run(){
public void run(){
System.out.println("name" + super.getName() + "---->" +
super.getI());
}
}
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar
java Thread class 光 署 <shuguang008@gmail.com> - 2011-10-09 20:07 -0700 Re: java Thread class Knute Johnson <nospam@knutejohnson.com> - 2011-10-09 20:20 -0700 Re: java Thread class Patricia Shanahan <pats@acm.org> - 2011-10-09 20:37 -0700
csiph-web