library design issues
Who is charge of checking for ready fd’s?
- give all fd’s to the application, which will call the appropriate msg handle library routines.
- Or, we can do all the fd processing as long as the application calls us periodically.
- Or, fork another thread from the library to do the work. (RTOS in the switches may not have a multithreaded model)
We chose periodic call; best tradeoff between ease-of-use and OS overheat