CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2005
    Posts
    200

    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?

  2. #2
    Join Date
    Mar 2004
    Location
    (Upper-) Austria
    Posts
    2,899

    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).
    I am not offering technical guidiance via email or IM
    Come on share your photo with us! CG members photo album!
    Use the Code Tags!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured