A thread synchronization model for SIP servlet containers

  • Authors:
  • Yi Huang;Eric Cheung;Laura K. Dillon;R. E. Kurt Stirewalt

  • Affiliations:
  • Michigan State University, East Lansing, MI;AT&T Research Labs, Inc., Florham, NJ;Michigan State University, East Lansing, MI;Michigan State University, East Lansing, MI

  • Venue:
  • Proceedings of the 3rd International Conference on Principles, Systems and Applications of IP Telecommunications
  • Year:
  • 2009

Quantified Score

Hi-index 0.00

Visualization

Abstract

Multi-threaded SIP servlet containers pose difficult synchronization problems to application developers. On the one hand, if a container automatically locks resources for servlets according to some fixed protocol, this protocol is not likely to be appropriate for all applications. It may degrade performance or even introduce deadlock in some applications. On the other hand, leaving application programmers to code synchronization---while flexible---is prone to error. The logic to both infer the resources a servlet requires and then to lock the required resources is complex and cross-cutting. This "synchronization logic" can easily obscure an application's "business logic." Interleaving synchronization code with business code makes an application difficult to maintain and extend. In this paper, we elaborate key dimensions of the thread synchronization problem for SIP servlet containers. We further propose a novel synchronization model for SIP servlet containers, which addresses these dimensions in a more comprehensive fashion than any existing model that we know of. Our synchronization model is highly flexible. It introduces abstractions to promote correctness, maintainabilty, and extensibility. We also describe a reference framework that implements these abstractions. To illustrate the benefits of our model, we describe a representative SIP application developed using this framework.