Mutithread proformence

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
leon_titan
Posts: 24
Joined: Sun Jan 12, 2020 2:11 pm
Has thanked: 4 times

Mutithread proformence

Post by leon_titan »

I have two thread, which both CPU-intensive. I wonder which way is more proformence:

One is by Cooperative Round Robin, another is by chThdSleepMicroseconds(1) each loop;
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Mutithread proformence

Post by Giovanni »

In that case is cooperative RR.

Giovanni
leon_titan
Posts: 24
Joined: Sun Jan 12, 2020 2:11 pm
Has thanked: 4 times

Re: Mutithread proformence

Post by leon_titan »

Got it
Post Reply