Jump to content
xisto Community
Sign in to follow this  
turbopowerdmaxsteel

Multithreading Woes

Recommended Posts

The concept of multithreading, while visualises the power to build memory efficient and responsive applications, is one of the most complicated things to deal with, considering the issues such as that of thread safety, etc.Going by M$'s help pages makes it sound even more 'hocus-focus'. I would appreciate a to the ground explanation of Mutithreading and its implementation.

Share this post


Link to post
Share on other sites

I can be daunting, but just start simple. For instance:

Private Sub ThreadTest	 'This is all the code needed to spin a thread off	 Dim t as system.threading.thread(addressof MyFirstThread)	 t.startEnd SubPrivate Sub MyFirstThread()	Dim i as integer   	While i < 10		threadResult = threadResult + (i * 2)		i += 1	End WhileEnd Sub

Of course, threads have many methods and may need to be managed or synchronized. Used sparingly, though, they're not that complicated.

Notice from miCRoSCoPiC^eaRthLinG:
In future make sure when you post any kind of code, it's enclosed within the CODE tags. If any mod does it for you later on - you loose out on a lot of credits, owing to the penalizing system.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.