code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
| public class TestClass implements Runnable
{
private Thread m_Thread;
/* (non-Javadoc)
* @see java.lang.Runnable#run()
*/
public void run()
{
try
{
while(!stop){ }
}
catch (IOException e)
{
}
}
public void start()
{
m_Thread = new Thread(this);
m_Thread.run();
}
public void doSomethingElse()
}
}
} |
Mijn vraag is of ik doSomethingElse aan kan roepen terwijl de run code al draait. Zoja, wat betekent dat voor de run methode?
[ Voor 11% gewijzigd door Verwijderd op 24-05-2006 16:26 ]