I am new to system design and system programming. I saw this question, it was asked in a company's interview. (TCP Sender Receiver)
- Files are being sent over 5 parallel TCP connections from sender to receiver.
- Files are splitted into 512 Bytes segments.
- Chunks from multiple files can be sent paralley.
- Assume no packet loss, no connection break.
- The sender receives the segments and merges them to create the file.
Told to write the pseudo-code for the sender.
(I think we can use concept of multithreading for the purpose,but not so sure.)