Back to projects

2024 / Operating systems project

Multi-threaded TCP Server Competition

A C and pthreads server for prioritized requests under heavy load, awarded first place among 30+ groups in an operating systems course challenge.

  • C
  • POSIX threads
  • TCP
  • Hash maps
  • Scheduling

At Technical University of Denmark, my group built a TCP server for an operating systems course competition. The challenge was to process hash-related requests efficiently under heavy load while prioritizing work.

Our implementation used POSIX threads, mutexes, priority estimation, and an efficient hash map strategy to cache useful results. The system ranked first among more than thirty groups.

Technical Emphasis

  • Thread-safe request handling with pthreads.
  • Priority-aware scheduling under load.
  • Efficient reuse of previously computed results.
  • Careful synchronization around shared state.

The project rewarded the kind of engineering that operating systems courses are good at exposing: simple APIs on the outside, sharp performance and concurrency tradeoffs underneath.