6.2.1 Processes vs. Threads
6.2.1 Processes vs. Threads
Think of a process like a whole factory. It has its own building, its own machines, and its own workers. If you want to build different products, you might need different factories (processes).
A thread is like a single worker within that factory. One factory (process) can have many workers (threads) all working on different parts of the same big project at the same time. For example, in a word processor program (one process), one thread might be checking your spelling, another might be saving your document, and another might be displaying what you type on the screen, all at the same time. Using threads makes a program run faster and feel more responsive because it can do multiple small jobs simultaneously.
Bibliography:
- Process vs Thread. (2025, January 7). GeeksforGeeks. Retrieved July 10, 2025, from https://www.geeksforgeeks.org/operating-systems/difference-between-process-and-thread/
- What is a thread? (n.d.). Techopedia. Retrieved July 10, 2025, from https://www.techopedia.com/definition/25070/thread