TPS Interview Question

OS process communication mechanism: socket vs pipes