LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-08-2011, 04:53 AM   #1
dakshayini
LQ Newbie
 
Registered: Feb 2011
Posts: 3

Rep: Reputation: 0
question on using more posix threads for server handling multiple client


hi,
I am writing a server application in c in which should handle multiple clients . I have a requirement of all clients will be active they wont disconnect the TCP connection i thought of using (posix)thread per each client and using select(timeout 60sec) in that thread. For example if i have 40 clients all running together client will be communication to server thread every 30 sec server should ack them .and i am exiting thread if select timeout cross certain count or if read byte is 0.

I want to know maximum number of threads(client) that i can run always and Do i need to maintain any thread pool like that for maintating the threads.
I am using Linux kernel version 2.6.31
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
QTcpSocket (Client) -> POSIX Sockets (Server) Gavin Harper Programming 1 01-19-2011 08:36 PM
Help regarding Asynchronous way of handling NAS , Client and AAA server immadisetty Linux - Networking 0 11-27-2009 03:34 AM
openvpn question: one client computer with multiple server installations mr94040 Linux - Server 3 09-20-2009 01:55 PM
ftp client that supports multiple threads? touser Linux - Software 2 11-27-2005 09:15 PM
Signal Handling in Threads[POSIX] anoop_cv Programming 1 11-02-2004 02:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration