The cerebral cortex is the portion of the brain most frequently associated with the thinking process, even though it cannot provide thinking without simultaneous action of most deep structures of the brain.