请输入您要查询的百科知识:

 

词条 Temporal multithreading
释义

  1. Variations

  2. Comparison to simultaneous multithreading

  3. See also

  4. References

{{Refimprove|date=March 2016}}Temporal multithreading is one of the two main forms of multithreading that can be implemented on computer processor hardware, the other being simultaneous multithreading. The distinguishing difference between the two forms is the maximum number of concurrent threads that can execute in any given pipeline stage in a given cycle. In temporal multithreading the number is one, while in simultaneous multithreading the number is greater than one. Some authors use the term super-threading synonymously.[1]

Variations

There are many possible variations of temporal multithreading, but most can be classified into two sub-forms:

//Granularity (parallel computing)">Coarse-grained: The main processor pipeline contains only one thread at a time. The processor must effectively perform a rapid context switch before executing a different thread. This fast context switch is sometimes referred to as a thread switch. There may or may not be additional penalty cycles when switching.

There are many possible variations of coarse-grained temporal multithreading, mainly concerning the algorithm that determines when thread switching occurs. This algorithm may be based on one or more of many different factors, including cycle counts, cache misses, and fairness.

//Granularity (parallel computing)">Fine-grained (or interleaved):

The main processor pipeline may contain multiple threads, with context switches effectively occurring between pipe stages (e.g., in the barrel processor). This form of multithreading can be more expensive than the coarse-grained forms because execution resources that span multiple pipe stages may have to deal with multiple threads. Also contributing to cost is the fact that this design cannot be optimized around the concept of a "background" thread — any of the concurrent threads implemented by the hardware might require its state to be read or written on any cycle.[2]

Comparison to simultaneous multithreading

In any of its forms, temporal multithreading is similar in many ways to simultaneous multithreading. As in the simultaneous process, the hardware must store a complete set of states per concurrent thread implemented. The hardware must also preserve the illusion that a given thread has the processor resources to itself. Fairness algorithms must be included in both types of multithreading situations to prevent one thread from dominating processor time and/or resources.

Temporal multithreading has an advantage over simultaneous multithreading in that it causes lower processor heat output; however, it allows only one thread to be executed at a time.

See also

  • Simultaneous multithreading, another implementation of hardware multithreading
  • Thread (computer science), the fundamental software entity scheduled by the operating system kernel to execute on a CPU or processor (core)
  • Symmetric multiprocessing, where the system (or partition of a larger computer hardware platform) contains more than one CPU or processor (core) and where the operating system kernel is not limited to which of the available CPUs (cores) a given thread can be scheduled to execute on.
  • Barrel processor

References

1. ^[https://arstechnica.com/articles/paedia/cpu/hyperthreading.ars/3 Superthreading with a multithreaded processor]
2. ^{{Cite book|title = Operating System Concepts|last = Silberschatz|first = Abraham|publisher = Wiley, 9th Edition|year = 2012|isbn = 978-1118063330|location = |pages = 283}}
{{CPU technologies}}{{Parallel Computing}}{{DEFAULTSORT:Temporal Multithreading}}

4 : Flynn's taxonomy|Threads (computing)|Central processing unit|Computer architecture

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/25 18:35:41