Using the teensy 4.1
That is an interesting concept, i will look into it more, thanks!
Type: Posts; User: BrianTee
Using the teensy 4.1
That is an interesting concept, i will look into it more, thanks!
I know this is off topic, but how far away is non blocking i2c? That was the whole reason for going down the thread path. I read the discussion about it, but i get the feeling it has low priority. My...
This should certainly be included in the docs for threading! I would venture to guess many would assume that only the threads are actually threaded with a whole world of hurt on the main thread if...
Printing the ID from the normal arduino main loop says it is 0, and the first thread is one.
So if anyone is looking for the answer, the answer is everything is a thread with the main program...
But there is only 1 thread and the main loop. Or does the traditional "Loop" as per first post code now considered a thread as well?
If so, how do i set the timeslice of "Loop". I wouldn't want a...
So after the 10 msec is up and the context switches back to loop, how long is it till it is it thread "A" turn again? To keep it simple, there is only thread A and the loop.
But the readme doesn't say what tells the context_switch() when to run. Or for example if the timeslice is set to 10 msec and it takes 20 msec to run the code, when does it context_switch back to...
Yes the TeensyThreads library. The code itself is just an example, there could be anything in either place. The question focuses on how long does the processor spend in the main before spending time...
I have a question about thread timing.
volatile uint counter;
void threadFunction()
{
while(1)