It seems we can implement it on linux with `sched_getcpu`. [This link](https://www.scss.tcd.ie/Jeremy.Jones/GetCurrentProcessorNumberXP.htm) gives another way to get cpu id on x86 platform, which can cover windows on x86.
It seems we can implement it on linux with
sched_getcpu.This link gives another way to get cpu id on x86 platform, which can cover windows on x86.