Talk:Determine if only one instance is running

From Rosetta Code
Revision as of 06:56, 3 April 2011 by rosettacode>Markhobley (C Solution)

Except for possibly a few languages, this task is highly operating system dependent. It's probably not a good task for rosettacode.--64.238.49.65 20:30, 19 November 2008 (UTC)

It's a very common problem, and platform-specific code isn't inappropriate, as long as the platform is identified in the example. --Short Circuit 02:05, 21 November 2008 (UTC)

C Solution

I wonder why the file system method was considered a better solution. I liked the older code that used semaphores.

Markhobley 06:56, 3 April 2011 (UTC)

VB solution

It looks like the VB solution only checks for previously run instances of the application. What about instances started after this one? Should this be a problem and should we choose to keep this task, it should be corrected. --Mwn3d 21:36, 19 November 2008 (UTC)

The common case requiring detection of multiple instances are running is to prevent multiple instances of a program from accessing app-global resources. That's probably what the author of the VB solution had in mind. The task author should probably clarify the task's intent and requirements. --Short Circuit 02:05, 21 November 2008 (UTC)