Jump to content
Xtreme .Net Talk

Recommended Posts

  • *Experts*
Posted
Two threads can run simultaneously, meaning you can have two things happening at one. If you put this code:
Dim i As Integer

Do
 i += 1
Loop Until bContinue = False

in your main program, it would freeze it. If you put it inside a second thread, the main thread would still be free to do other things, so the program would run normally. If you learn to use threading properly, it's a very powerful and useful tool.

Posted

EDIT:

Nevermind VF explanation is better (and he beat me to the punch). I'll just add this...

 

With .NET you rarely need to even bother with threading for smaller projects. .NET takes care of all the threading that's important.

Gamer extraordinaire. Programmer wannabe.
  • Moderators
Posted
For example; Let's say you have some code that generates reports and it takes a few minutes to complete, you can allow the user to continue with other tasks, or even generate another set of reports.
Visit...Bassic Software

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...