Skip to main content
USENIX
  • Conferences
  • Students
Sign in

connect with us


  •  Twitter
  •  Facebook
  •  LinkedIn
  •  Google+
  •  YouTube

twitter

Tweets by @usenix

usenix conference policies

  • Event Code of Conduct
  • Conference Network Policy
  • Statement on Environmental Responsibility Policy

You are here

Home » Multiprocessor Support for Event-Driven Programs
Tweet

connect with us

Multiprocessor Support for Event-Driven Programs

Abstract: 

This paper presents a new asynchronous programming library (libasync-smp) that allows event-driven applications to take advantage of multiprocessors by running code for event handlers in parallel. To control the concurrency between events, the programmer can specify a color for each event: events with the same color (the default case) are handled serially; events with different colors can be handled in parallel. The programmer can incrementally expose parallelism in existing event-driven applications by assigning different colors to computationally-intensive events that do not share mutable state.

An evaluation of libasync-smp demonstrates that applications achieve multiprocessor speedup with little programming effort. As an example, parallelizing the cryptography in the SFS file server required about 90 lines of changed code in two modules, out of a total of about 12,000 lines. Multiple clients were able to read large cached files from the libasync-smp SFS server running on a 4-CPU machine 2.5 times as fast as from an unmodified uniprocessor SFS server on one CPU. Applications without computationally intensive tasks also benefit: an event-driven Web server achieves 1.5 speedup on four CPUs with multiple clients reading small cached files.

Nickolai Zeldovich, Stanford University

Alexander Yip, Massachusetts Institute of Technology

Frank Dabek, Massachusetts Institute of Technology

Robert T. Morris, Massachusetts Institute of Technology

David Mazières, New York University

BibTeX
@inproceedings {270216,
author = {Nickolai Zeldovich and Alexander Yip and Frank Dabek and Robert T. Morris and David Mazi{\`e}res},
title = {Multiprocessor Support for {Event-Driven} Programs},
booktitle = {2003 USENIX Annual Technical Conference (USENIX ATC 03)},
year = {2003},
address = {San Antonio, TX},
url = {https://www.usenix.org/conference/2003-usenix-annual-technical-conference/multiprocessor-support-event-driven-programs},
publisher = {USENIX Association},
month = jun,
}
Download

Links

Paper: 
http://usenix.org/publications/library/proceedings/usenix03/tech/full_papers/zeldovich/zeldovich.pdf
Paper (HTML): 
http://usenix.org/publications/library/proceedings/usenix03/tech/full_papers/zeldovich/zeldovich_html/index.html
  • Log in or    Register to post comments

© USENIX

  • Privacy Policy
  • Contact Us