Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: BrianTee

Search: Search took 0.00 seconds.

  1. Replies
    16
    Views
    681

    Using the teensy 4.1 That is an interesting...

    Using the teensy 4.1


    That is an interesting concept, i will look into it more, thanks!
  2. Replies
    16
    Views
    681

    I know this is off topic, but how far away is non...

    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...
  3. Replies
    16
    Views
    681

    This should certainly be included in the docs for...

    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...
  4. Replies
    16
    Views
    681

    Printing the ID from the normal arduino main loop...

    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...
  5. Replies
    16
    Views
    681

    But there is only 1 thread and the main loop. Or...

    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...
  6. Replies
    16
    Views
    681

    So after the 10 msec is up and the context...

    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.
  7. Replies
    16
    Views
    681

    But the readme doesn't say what tells the...

    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...
  8. Replies
    16
    Views
    681

    Yes the TeensyThreads library. The code itself is...

    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...
  9. Replies
    16
    Views
    681

    Threading and timeslice

    I have a question about thread timing.




    volatile uint counter;

    void threadFunction()
    {
    while(1)
Results 1 to 9 of 9