Search Results for

    Show / Hide Table of Contents

    Multithreading


    TinyCLR OS is a single process system, only running your application. This is in fact a good security feature! However, TinyCLR OS supports threading similar to full .NET.

    void Blinker() {
        // LED on
        Thread.Sleep(100);
        // LED off
        Thread.Sleep(100);
    }
    
    void main() {
        var t = new Thread(Blinker);
        t.Start();
        // do secondary task
        Thread.Sleep(Timout.Infinite);
    }
    
    • Improve this Doc
    ☀
    ☾
    In This Article

    Back to top

    Back to top Copyright © 2021 GHI Electronics, LLC
    Generated by DocFX