I tried using Multiple threads. I can't go beyond a thread limit. Is there any other way to achieve simultaneous processing.
Asked
Active
Viewed 45 times
0
-
Related: http://stackoverflow.com/questions/344203/maximum-number-of-threads-per-process-in-linux – dragosht Feb 25 '15 at 07:24
-
1It depends,. What is your use case? Do you need tight coupling? Shared memory? – Some programmer dude Feb 25 '15 at 07:26
-
1If you're hitting the thread limit, you're almost always doing something wrong. You need to explain what you're trying to do. – user3386109 Feb 25 '15 at 07:45
-
Each process has it's own virtual address space, so a context switch between processes requires more CPU overhead to switch the virtual address space than a context switch between threads, which all share the same virtual address space. – rcgldr Feb 25 '15 at 15:26
-
Thanks. Say if i want to use 1000 tcp connections and need simultaneous read/write in 1000 tcp sockets. For this scenario, i need to use 1000 threads for reading/writing in 1000 sockets simultaneously. Am i right ? or What is the efficient way to achieve good performance without loss/delay in read/write ?? – Mohanraj V Feb 26 '15 at 05:59