I am using JUnixSocket to read and write to a UNIX socket where a c++ process is listening to. I am seeing big difference between read and write cpu time. Read is taking good amount of long time(Attached the snapshot). Also wanted to check what should be the ideal buffer size to read from the socket. Write now I am reading in a while loop of size 224K.
Hello,
I am using JUnixSocket to read and write to a UNIX socket where a c++ process is listening to. I am seeing big difference between read and write cpu time. Read is taking good amount of long time(Attached the snapshot). Also wanted to check what should be the ideal buffer size to read from the socket. Write now I am reading in a while loop of size 224K.
Thanks, Prince