Implementation of a real-time token bucket simulator using the pthread libraries.