Mutithread proformence

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

Moderators: RoccoMarco, lbednarz, utzig, tfAteba, barthess

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

Mutithread proformence

Postby leon_titan » Fri May 20, 2022 5:45 am

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: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: Mutithread proformence

Postby Giovanni » Fri May 20, 2022 5:55 am

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

Postby leon_titan » Fri May 20, 2022 7:20 am

Got it


Return to “General Support”

Who is online

Users browsing this forum: Bing [Bot] and 20 guests