In an operating system, a thread is the smallest unit of execution within a process. Threads share the same memory space and resources of the parent process, allowing for concurrent execution and efficient multitasking.