Make AbstractCPU class thread safe