I have a client application (C++, Windows) that opens sockets, connects to a server, makes requests, receive responses and notifications. It does logging and saves preferences locally. What can be problems if I try to run multiple instances of this application which is prevented presently?
I have a client application (C++, Windows) that opens sockets, connects to a server,
Share
Sounds a little bit like a Web browser 😉
And like a typical Web browser, if your application is implemented correctly, you’ll be able to run multiple instances fine.
Unfortunately, there are ways to botch the implementation, for example:
Etc etc… Essentially whenever there is a shared resource (be it a filesystem, network, CPU, memory, screen or whatever), care must be taken when concurrently using it.