Single and Multi - Threading

 


"A thread is a basic unit of CPU utilization; it comprises a thread ID, a program counter, a register set, and a stack. It shares with other threads belonging to the same process its code section, data section, and other operating-system resources, such as open files and signals” (Patterson, & Hennessy. 2014). Two types of thread processing will be discussed will be single-thread processing and multiple-thread processing. The single-thread processor allows the process to run in its entirety without being interrupted from start to finish, while a multi-thread processor can run multiple threads within a process.  A single thread shares the code, data, and file with one single task. A thread is simply the flow of control within a process. A single thread uses one register and one stack within the process. The multi-thread processor uses multiple registers and stacks.  Single-thread processors execute one command at a time. The concept of parallelism is used in multi-thread processing.

Comments