Are named pipes in Windows (and other OS as well process wide)?
I have this weird scenario:
I wrote a program lets say "Controller.exe" which spawns a bunch of "Workers.exe", then Controller.exe creates a named pipe called "Pipe0" ... through "PipeN".
Then Workers.exe (who are started with a command line arg as the name of the pipe) go connect to this pipe.
So a customer of this controller.exe to generate load started 5 instances of the program ("controller.exe") which created 5 times the Worker.exe processes
but in my code for Controller.exe I create a named pipe called "Pipe0" ... "PipeN" ... so my question is how is this even working!?
Aren't named pipes OS wide? As in how does Worker.exe know which named pipe "pipe0" to connect to?