Reducing context switch overhead with compiler-assisted threading
Jääskeläinen, P.; Kellomäki, P.; Takala, J.; Kultala, H.; Lepistö, M. (2009)
Jääskeläinen, P.
Kellomäki, P.
Takala, J.
Kultala, H.
Lepistö, M.
Teoksen toimittaja(t)
Guo, M.
Wang, Z.
Tang, F.
Xu, C.
2009
Julkaisun pysyvä osoite on
https://urn.fi/URN:NBN:fi:tty-201104152069
https://urn.fi/URN:NBN:fi:tty-201104152069
Kuvaus
Peer reviewed
Tiivistelmä
Multithreading is an important software modularization technique. However, it can incur substantial overheads, especially in processors where the amount of architecturally visible state is large. We propose an implementation technique for co-operative multithreading, where context switches occur in places that minimize the amount of state that needs to be saved. The subset of processor state saved during each context switch is based on where the switch occurs. We have validated the approach by an empirical study of resource usage in basic blocks, and by implementing the co-operative threading in our compiler. Performance figures are given for an MP3 player utilizing the threading implementation.
Kokoelmat
- TUNICRIS-julkaisut [16929]