PThread CPU Code