Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Multi threading

netduino+ multi threading

  • Please log in to reply
2 replies to this topic

#1 JeroenG

JeroenG

    Member

  • Members
  • PipPip
  • 13 posts

Posted 14 January 2013 - 09:43 AM

Hi

 

How to do multi threading with netduino+?

 

Thanks



#2 Bainesbunch

Bainesbunch

    Advanced Member

  • Members
  • PipPipPip
  • 61 posts
  • LocationFrance

Posted 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.

#3 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 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 topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.