Implemented real time token bucket simulator using pthread library.