I have a Windows C++ application that needs to access the web for a few kbytes of data every few minutes. Latency for those bytes must be reasonably low--less than a second.
The application creates many files, each around 1 Mb. If I upload those files while the my application is running using Filezilla, my application suffers from occaisional time-outs, even with time-out set to as long as five seconds.
Can I add a thread to my application to upload files in such a way that would avoid impacting latency on getting those 1 Kbyte web accesses? Would it be sufficient to just have the thread that does the uploading be at a lower priority, or are there shared resources (Wifi, and everything else between my pc and the cloud) that could be consumed by the file upload, even it's thread is lower priority?