In computer science, a thread is the smallest unit of processing that can be performed within an operating system.