Hi guys,
Ok so I'm writing a chat application like thing, which will actually be used in a similar way to MSN Messenger's Whiteboard function.

My problem is that as soon as I start the 'server' program (which also includes a client!) the CPU usage shoots up to 100% and stays there. I think it might be because there is a thread in the background listening for new connections. Is there any way to reduce the CPU usage? (Its slowing down the rest of the app, and don't even think about trying to do anything else!) I've tried reducing the thread priority, but that just seemed to make client's connection take an age.

I can post some source code if you'd like...

Thanks, Mech