hi, as i seen topic which not recommending more thn 200 threads for server machine,
i am trying to implement Listener class which listens 1000 devices, i mean 1000 devices sending different type of messages to that application,
i tried 2 different way 1. creat thread for each device runtime and dynamic list which hold the messages for that device and start thread for processing those messages from the list
but my machine not creating thread more thn 50 :), and i agree its bad idea...
- i created 10 different lists which holds the messages 10 different type of messages and i created 10 processor thread for those list, which go to its relevent list and proces the message and thn delete it....
but here is the problem, let say i recieved 50 messages from 50 devices in List 1 by the time its list1's processor thread will go to last message (50th) its time will be expired which is 10 second
any idea to for best architecture that talk to more thn 500 devices and process thier different type of messages with in 10 seconds..
THanks ASamad