Subj : Re: Socket programmation with threads To : comp.programming.threads From : Joe Seigh Date : Tue May 24 2005 07:59 am On 24 May 2005 01:23:02 -0700, Jomu wrote: > Not correct. > > Linux threads are very much like processess, but linux scheduler is > O(1) and processeses are verrry lightweight. > > I don't have experience with 10k concurrent connections w/ Linux thread > per connection, but 500-600 I do. Processor load goes as high as 1-2% > on 500 connections to DC hub and I've used three threads per > connection. Up to 15000 context switches per second and no sweat on P4 > 2.4 w/ 1GB. > Linux's preemptive signaling pretty much nullifies any advantage it has with context switching. You can significantly boost performance by adding extra context switches. So when you context switch is more important than how efficient the context switch is. -- Joe Seigh When you get lemons, you make lemonade. When you get hardware, you make software. .