The thalamus is a large dual lobe structural part of the brain which performs endocrine function. It is located between the cerebral cortex and mid-brain or at the top of the brain-stem. It performs an important function in our body. It receives the sensory impulses and relays them to the sensory centre of the brain.
The hypothalamus is the principal centre of the autonomic nervous system. It is a part of the back part of the fore-brain and is located beneath the thalamus. The hormone released by the hypothalamus activates the production of other hormones by the pituitary gland, the master gland of the body.