CPU emulation on separate thread