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;
Mutithread proformence
Moderators: RoccoMarco, lbednarz, tfAteba
-
leon_titan
- Posts: 24
- Joined: Sun Jan 12, 2020 2:11 pm
- Has thanked: 4 times
- Giovanni
- Site Admin
- Posts: 14895
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times
-
leon_titan
- Posts: 24
- Joined: Sun Jan 12, 2020 2:11 pm
- Has thanked: 4 times