Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7399377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:03:11+00:00 2026-05-29T04:03:11+00:00

I have a client application (C++, Windows) that opens sockets, connects to a server,

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T04:03:12+00:00Added an answer on May 29, 2026 at 4:03 am

    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:

    • Exclusively lock log or configuration files for prolonged periods, thus “stalling” other instances.
    • Just plain ignore the concurrent access to files, leading to all sorts of possible corruptions.
    • Act not just as a client but as a server as well, and listen to a hard-coded port (so the second instance will fail while attempting to open the same port).
    • Incorrectly declare a mutex as “public” (and therefore shared between processes) instead of “private”, leading to slow-downs and possibly deadlocks.
    • There is a limit for number of GDI handles per session. If you application uses excessive handles, multiple instances taken together might reach that limit, even when each of them individually observes the 10000 handles-per-process limit.
    • Be a CPU hog (e.g. through busy waiting). One CPU hog on a modern multicore CPU might pass unnoticed, but once the number of instances exceeds the number of CPU cores that’s another story!
    • Be a memory hog.
    • Mismanage UI:
      • Use UI tricks such as “always on top” windows – multiple such windows on the screen at the same time is no fun!
      • Mismanage the taskbar notification area (e.g. display a tray icon for each instance). Will technically “work” but having excessive number of tray icons is not pleasant, especially if application does not also have a “regular” taskbar button.

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a client server based windows forms application that needs an administrator only
We have a Server/Client cybercafe management application which used to work fine on Windows
We have a client application that needs to send messages to a server for
I have a client/server application that communicates with .Net remoting. I need my clients
i have a server - client application that runs on java 1.3; i want
I have implemented a client-server transferring from Windows desktop application to iPhone App. I
I am writing an application that communicates using sockets. I have a server running
I have C# Client application calling Windows webservice written in WCF calling Sql Procedure
Using Visual Studio 2008, c#, .net 2.0. I have a Windows Forms client application
I currently have a Firebird server on Windows and Windows desktop client applications for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.