I am searching cross-platform techniques to write client-server applications on Mac. I used BSD sockets, Cocoa APIs but I need to know which would be better at performance.
I'm writing an application both on Linux and Solaris 10. It uses local sockets for some internal communications. On Linux an open, exchange one short message & close cycle takes about 10us elapsed time. On Solaris 10 x86, it takes about 400us.
This is such atrociously bad performance, that I think I might have done something fundamentally wrong.
I have written network applications based on BSD sockets on an embedded platform. Now I want to port my application on to POSIX platform (Linux). Does Linux providing any kind of wrapper which I can use for porting my application.
I know this is in reference to a vCPU, but even so, logically it doesn't make sense to have 4 sockets and a single core. That sounds to me more like you've filled one of the sockets with a single core CPU and left 3 sockets open.
I have a hunch that my definition of sockets is wrong.