Volume 11 Number 3 (May 2016)
Home > Archive > 2016 > Volume 11 Number 3 (May 2016) >
JCP 2016 Vol.11(3): 176-188 ISSN: 1796-203X
doi: 10.17706/jcp.11.3.176-188

Rethink Scalable M:N Threading on Modern Operating Systems

Lu Gong1, Zhanqiang Li2, Tao Dong2, Youkai Sun2
1Department of Computer Science and Engineering, Shanghai Jiao Tong University, Shanghai, China.
2Shengli Geophysical Research Institute of Sinopec, Beijing, China.


Abstract—In modern operating systems, thread is the only primitive to exploit the concurrency provided by multiple processors, which allows programmers to write sequential code that can be executed in parallel. However, these operating systems are known to be inefficient when the number of threads comes to the magnitude of 103. Therefore server developers have to avoid the use of naive threading when they need to handle thousands of simultaneous client sessions.
   In this paper, we propose a highly scalable user-level threading library μThread. It enables programmer to write heavily concurrent threaded code without losing performance. Our framework achieves the M:N threading model, which hosts M user-level threads on top of N kernel-level threads. To demonstrate the usefulness of this framework, we provide a proof-of-concept implementation of a web server application.
   According to our experiments, μThread provides good performance and great scalability. The web server based on μThread becomes the best performance user-mode web server under Windows.

Index Terms—Operating system, threading, scalability.

[PDF]

Cite: Lu Gong, Zhanqiang Li, Tao Dong, Youkai Sun, "Rethink Scalable M:N Threading on Modern Operating Systems," Journal of Computers vol. 11, no. 3, pp. 176-188, 2016.

General Information

ISSN: 1796-203X
Abbreviated Title: J.Comput.
Frequency: Bimonthly
Editor-in-Chief: Prof. Liansheng Tan
Executive Editor: Ms. Nina Lee
Abstracting/ Indexing: DBLP, EBSCO,  ProQuest, INSPEC, ULRICH's Periodicals Directory, WorldCat,etc
E-mail: jcp@iap.org
  • Nov 14, 2019 News!

    Vol 14, No 11 has been published with online version   [Click]

  • Mar 20, 2020 News!

    Vol 15, No 2 has been published with online version   [Click]

  • Dec 16, 2019 News!

    Vol 14, No 12 has been published with online version   [Click]

  • Sep 16, 2019 News!

    Vol 14, No 9 has been published with online version   [Click]

  • Aug 16, 2019 News!

    Vol 14, No 8 has been published with online version   [Click]

  • Read more>>