Skip to content

mtanveer66/uniprojects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

University Course Registration System

Concurrent course registration simulation in C using POSIX threads.

Build

make

Run demo

./course_registration

The default run demonstrates:

  • 10 concurrent student threads
  • CS101 = 2 seats, CS102 = 1 seat, CS103 = 3 seats
  • at least 3 high-priority students
  • visible contention and priority-based ordering

Design notes

  • Each course has its own mutex/condition variable.
  • Student requests are queued per course and processed by priority first, then arrival order.
  • One thread is created per registration request.
  • Seat counts are updated only while holding the course mutex.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors