G
Gonzalo Moreno
Hi,
I'm trying to understand the conceptual difference between
Thread.currentThread().sleep(10) and
Thread.sleep(10)
Is there any difference between the two? It seems to me that you could
simplify Thread.currentThread().sleep(10) to Thread.sleep(10), since
according to the Java API, currentThread "returns a reference to the
currently executing thread object," and the sleep method causes the
"currently" executing thread to sleep ... what am I missing here??
thanks in advance,
Gonzalo.
I'm trying to understand the conceptual difference between
Thread.currentThread().sleep(10) and
Thread.sleep(10)
Is there any difference between the two? It seems to me that you could
simplify Thread.currentThread().sleep(10) to Thread.sleep(10), since
according to the Java API, currentThread "returns a reference to the
currently executing thread object," and the sleep method causes the
"currently" executing thread to sleep ... what am I missing here??
thanks in advance,
Gonzalo.