摘要 |
Threads are executed concurrently in a computer system. They may be executed on separate processors or on a single processor with hardware support for simultaneous multithreading (SMT). The threads share a common view of the memory of the system. In order to allow a block of instructions to execute atomically, all but one of the threads are suspended. The threads may be suspended by writing a predefined value to a specified memory location. This may cause an interrupt, which suspends the threads. The threads may be suspended in response to a user level instruction. The processor may include hardware to support transactional memory, such as a buffer to store write data and an area to store read addresses.
|