In my operating systems class right now we're handling a torrent-like system, and we need to create timeouts for connections that have been idle for too long. Is there any way to create a timer unique to a thread? I know of the Linux alarm() function, but the thing is we may have multiple connections that we have to keep track of.
There's got to be a way...
There's got to be a way...