I am having say 50 identical threads. They does some processing and send results to a thread waiting on a queue/channel. This is a repetitive process. So in such a case , please suggest which is the efficient method to follow.
Option 1:- Each of 50 threads open connection to queue/channel, so total of 50 connections open
Option 2:- Only one connection opened to queue/channel, each of 60 thread use the same connection id to send the results to queue/channel.
If option 2 is more suitable, will it work with open64(), lseek64() and write() also