A pathologist is a medical specialist who interprets histological samples. During surgery, pathologists may perform rapid intraoperative consultations, known as frozen sections. This process involves quickly freezing and slicing the tissue to provide immediate feedback to the surgeon, helping to confirm diagnoses and determine if all diseased tissue has been removed.