The FixCpu() method, which is Linux specific, should be removed. On a Pi with only one core it is useless, and on a Pi 4 I could not measure any impact on performance/transfer rate.
It might even be a disavantage to use only one CPU for a multi-threaded application.