C# assign ProcessID
-
Does anyone know if there is a way to assign a ProcessID the way you would assign a port for a socket? It would make my life a whole lot simpler.
"I need build Skynet. Plz send code"
No. The process ID is assigned by the OS. I'm curious - why would you want to assign a specific process ID to a process? /ravi
My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
-
No. The process ID is assigned by the OS. I'm curious - why would you want to assign a specific process ID to a process? /ravi
My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
-
Does anyone know if there is a way to assign a ProcessID the way you would assign a port for a socket? It would make my life a whole lot simpler.
"I need build Skynet. Plz send code"
I don't think so. You can, however, use Process.Id to identify your runnung app.
-
I don't think so. You can, however, use Process.Id to identify your runnung app.
Member 9986689 wrote:
You can, however, use Process.Id to identify your runnung app.
The problem here is that the process I was spawning was a daemon, and there is a battery of instances of the daemon all with the same process name...so without some way to either specify the processId of the child or persist its processId before the parent process died, there would be no way to attach to the proper instance (and the instances were not interchangeable) I was able to work around this by adding a Configurator that attached the monitoring process to the daemon as it was being spawned. ...Being able to assign it an arbitrary ProcessID would have made the job easier and reduced the complexity of the implementation (not sure what justified the downvote of my original question)
"I need build Skynet. Plz send code"