Dynamic enablement of multithreading
First Claim
1. A computer system, comprising:
- a configuration comprising a core configurable between a single thread (ST) mode and a multithreading (MT) mode, the ST mode addressing a primary thread and the MT mode addressing the primary thread and one or more secondary threads on shared resources of the core; and
a multithreading facility configured to control the configuration to perform a method comprising;
executing in the primary thread in the ST mode, an MT mode setting instruction;
obtaining a number of threads requested from a location specified by the MT mode setting instruction; and
based on determining that the number of threads requested indicates multiple threads, enabling the MT mode to execute the multiple threads comprising the primary thread and the one or more secondary threads.
1 Assignment
0 Petitions
Accused Products
Abstract
Embodiments relate to dynamic enablement of multithreading. According to an aspect, a computer system includes a configuration with a core configurable between a single thread (ST) mode and a multithreading (MT) mode. The ST mode addresses a primary thread, and the MT mode addresses the primary thread and one or more secondary threads on shared resources of the core. The computer system also includes a multithreading facility configured to control the configuration to perform a method. The method includes executing in the primary thread in the ST mode, an MT mode setting instruction. A number of threads requested is obtained from a location specified by the MT mode setting instruction. Based on determining that the number of threads requested indicates multiple threads, the MT mode is enabled to execute the multiple threads including the primary thread and the one or more secondary threads.
85 Citations
13 Claims
-
1. A computer system, comprising:
-
a configuration comprising a core configurable between a single thread (ST) mode and a multithreading (MT) mode, the ST mode addressing a primary thread and the MT mode addressing the primary thread and one or more secondary threads on shared resources of the core; and a multithreading facility configured to control the configuration to perform a method comprising; executing in the primary thread in the ST mode, an MT mode setting instruction; obtaining a number of threads requested from a location specified by the MT mode setting instruction; and based on determining that the number of threads requested indicates multiple threads, enabling the MT mode to execute the multiple threads comprising the primary thread and the one or more secondary threads. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A computer program product for implementing dynamic enablement of multithreading in a configuration comprising a core configurable between a single thread (ST) mode and a multithreading (MT) mode, the ST mode addressing a primary thread and the MT mode addressing the primary thread and one or more secondary threads on shared resources of the core, the computer program product comprising:
a computer readable storage medium having program instructions embodied therewith, wherein the computer readable storage medium is not a signal, the program instructions readable by a processing circuit to cause the processing circuit to perform a method comprising; executing in the primary thread in the ST mode on the core of the configuration, an MT mode setting instruction; obtaining a number of threads requested from a location specified by the MT mode setting instruction; and based on determining that the number of threads requested indicates multiple threads, enabling the MT mode to execute the multiple threads comprising the primary thread and the one or more secondary threads. - View Dependent Claims (10, 11, 12, 13)
Specification