Skip to main navigation Skip to search Skip to main content

COPS: A Coroutine-Based Priority Scheduling Framework Perceived by the Operating System

  • Fangliang Zhao
  • , Donghai Liao
  • , Jingbang Wu
  • , Huimei Lu
  • , Yong Xiang*
  • *Corresponding author for this work
  • Tsinghua University
  • Beijing Institute of Technology
  • Beijing Technology and Business University

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

The multi-threading model in the general operating systems is becoming insufficient in applications with increasing amounts of concurrency, due to the high context-switching costs associated with kernel multi-threading. In this paper, we propose a new concurrency model called COPS. COPS employs a priority-based coroutine model as the fundamental task unit, replacing the traditional multi-threading model in scenarios with high concurrency, and offers a unified priority-based scheduling framework for both kernel and user space coroutines. COPS introduces coroutines as first-class citizens within the OS to provide asynchronous I/O mechanism, using kernel coroutines as a bridge between I/O operations and devices, and user coroutines to bridge applications with the OS services. We have designed a prototype web server based on COPS and conducted extensive experiments on an FPGA-based system to evaluate COPS. Results show that the proposed model achieves one to four times higher throughput while maintaining relatively lower overhead compared to the multi-threading model in large concurrency applications.

Original languageEnglish
Title of host publicationProceedings - 2024 International Conference on Ubiquitous Computing and Communications, 23rd International Conference on Computer and Information Technology and 7th International Conference on Data Science and Computational Intelligence, IUCC-CIT-DSCI 2024
EditorsZhiwei Zhao, Jia Hu, Lexi Xu, Fei Hao, Guangyao Pang, Haozhe Wang
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages99-106
Number of pages8
ISBN (Electronic)9798331511999
DOIs
Publication statusPublished - 2024
Event23rd International Conference on Ubiquitous Computing and Communications, IUCC 2024 - Chengdu, China
Duration: 20 Dec 202422 Dec 2024

Publication series

NameProceedings - 2024 International Conference on Ubiquitous Computing and Communications, 23rd International Conference on Computer and Information Technology and 7th International Conference on Data Science and Computational Intelligence, IUCC-CIT-DSCI 2024

Conference

Conference23rd International Conference on Ubiquitous Computing and Communications, IUCC 2024
Country/TerritoryChina
CityChengdu
Period20/12/2422/12/24

Keywords

  • Concurrency
  • Coroutine
  • Multi-threading

Fingerprint

Dive into the research topics of 'COPS: A Coroutine-Based Priority Scheduling Framework Perceived by the Operating System'. Together they form a unique fingerprint.

Cite this