The selective allocation of cognitive resources to prioritize processing of relevant stimuli in the environment.