PThread CPU Code Working