im trying to implement a multiclient tcp/ip chat and in the server side im spawning threads for every client. but during execution the processor is executing only one thread and the main thread. is there any way to manually switch the threads for cpu time after some time say 10secs or like that?