Latest Tech News

Stay updated with the latest in technology, AI, cybersecurity, and more

Filtered by: seriallock Clear Filter

ArduinoOS (2017)

To get the uptime of the operating system use getElapsedMilliseconds or getElapsedTicks . Locks In order to keep your application thread safe you can use locks. With locks you can prevent an other thread to access a variable, function, ... in an unsafe state. Example for conflicting threads: void mainThread () { InitTask (thread2); while ( true ) { Serial. println ( " Thread1 " ); } } void thread2 () { while ( true ) { Serial. println ( " Thread2 " ); } } If you execute this code you will n