Hi
How to do multi threading with netduino+?
Thanks
  | ||||||||||||||
2 replies to this topic
#1Posted 14 January 2013 - 09:43 AM Hi
How to do multi threading with netduino+?
Thanks #2Posted 14 January 2013 - 09:55 AM Same as you do in any .NET environment
I was going to change the world, then I discovered Netduino.
The world will have to wait. #3Posted 14 January 2013 - 11:12 AM How do you want to implement multithreading? Starting a second thread is easy;
Imports Microsoft.SPOTImports Microsoft.SPOT.HardwareImports SecretLabs.NETMF.HardwareImports SecretLabs.NETMF.Hardware.NetduinoModule Module1 Sub Main() ' write your code here Dim Thread2 As Thread = New Thread(AddressOf Main2) Thread2.Start() Do Debug.Print("Thread 1") Thread.Sleep(1000) Loop End Sub Sub Main2() Do Debug.Print("Thread 2") Thread.Sleep(1000) Loop End SubEnd Module
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs 0 user(s) are reading this topic0 members, 0 guests, 0 anonymous users | ||||||||||||||
|
||||||||||||||
This webpage is licensed under a Creative Commons Attribution-ShareAlike License. | ||||||||||||||