|
-
July 31st, 2007, 10:08 AM
#1
A question about the sleep() function
While the sleep() function is executed, can another method in the same program run?
If not, how can I make 1 method run while the other is delayed?
-
July 31st, 2007, 10:13 AM
#2
Re: A question about the sleep() function
While the sleep() function is executed, can another method in the same program run?
Yes. This technique is called multi threading.
If not, how can I make 1 method run while the other is delayed?
You can: Run either both in a thread or run one in a thread and the other one in the "main thread" (e.g. your application instance).
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|