Re: threadpooling problem?
From: Sriram Krishnan (ksriram_at_NOSPAMgmx.net)
Date: 10/13/04
- Next message: Mehmed Sipahi: "Re: threadpooling problem?"
- Previous message: akula: "RE: DataGrid Refresh Problem .NET Framework 1.1 SP1"
- In reply to: Mehmed Sipahi: "threadpooling problem?"
- Next in thread: Mehmed Sipahi: "Re: threadpooling problem?"
- Reply: Mehmed Sipahi: "Re: threadpooling problem?"
- Reply: Richard Blewett [DevelopMentor]: "Re: threadpooling problem?"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 13 Oct 2004 23:06:29 +0530
The ThreadPool has a limit of 25 threads - there is your problem.
-- Sriram Krishnan http://www.dotnetjunkies.com/weblog/sriram "Mehmed Sipahi" <Mehmed Sipahi@discussions.microsoft.com> wrote in message news:C4463DC9-1905-40BB-AD22-4150EB7F35A7@microsoft.com... > I am programming a asyncronous server with .NET using ThreadPool.. > Basicly Client connected to server using TCP sockets > When I test the program until 25 client server can respond all clients.but > after 25. client connected server cant respond other clients!where is the > problem? > > when a client connected i want to check socket if data avaible.. > > ThreadPool.QueueUserWorkItem(new WaitCallback(CheckSocket),_socket); > .... > the CheckSocket callback: > private void CheckSocket(object state) > { > while(_connected) > { > if(_socket.Poll(-1, SelectMode.SelectRead)) > { > if(_socket.Connected) > { > .... > } > } > } >
- Next message: Mehmed Sipahi: "Re: threadpooling problem?"
- Previous message: akula: "RE: DataGrid Refresh Problem .NET Framework 1.1 SP1"
- In reply to: Mehmed Sipahi: "threadpooling problem?"
- Next in thread: Mehmed Sipahi: "Re: threadpooling problem?"
- Reply: Mehmed Sipahi: "Re: threadpooling problem?"
- Reply: Richard Blewett [DevelopMentor]: "Re: threadpooling problem?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|