Forums Register Login

differnce between in Sleep and thread?

+Pie Number of slices to send: Send
hello all,
can anyone explain me the difference between Sleep and thread.
+Pie Number of slices to send: Send
They are not comparable things.
Sleep (I'm assuming you are refering to the sleep() method in the Thread class) causes the current thread to cease execution for the given time period.
Thread or more precisely instances of the Thread class are threads of execution in your program.
+Pie Number of slices to send: Send
The Sun Concurrency Tutorial is a good introduction to Threads. Sleep will likely show up in there, too. Let us know if it helps or raises more questions!
You save more money with a clothesline than dozens of light bulb purchases. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 769 times.
Similar Threads
Threads MindQ 41
What's the difference between the methods sleep() and wait()
Thread States ?'s
thread that sleeps and thread that waits
what is your sleep pattern
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 00:17:15.