Re: New to network programming a couple questions:
Saving data could also cause problems - what if the main thread tries to loads the data while it's being saved? You'd need to use a mutex for both saving and loading the pfile.
A more common use of threading is for DNS lookups. I also do a WHOIS on the IP address at the same time.
|