3 ms·
"Faster IPC model" than what? Faster than writing to and reading from a pipe? Faster than POSIX shared memory?
by mort96 4mo ago
"Faster IPC model" than what? Faster than writing to and reading from a pipe? Faster than POSIX shared memory?
- pjmlp 4mo agoThan UNIX fork/exec model, or calling into Create Process all the time. Windows has a more rich set of IPC stuff than POSIX, especially since it has a microkernel like design. If you are going to say it is everything on the same memory space anyway, it isn't. Optional on Windows 10, and enforced on Windows 11, Hyper-V is always running, and several components including kernel and driver modules are sandboxed into their little worlds. Several additional sandboxing changes were announced at BUILD.
- mort96 4mo agofork/exec is not an IPC model...
- pjmlp 4mo agoIt actually kind of is, hence why you have information about parent/child and get to share memory. This is how a http server back in the day would share the request context for the child process to reply back.
- mort96 4mo agoI would say that pipes and shared memory are the IPC mechanisms? Controlling the state of the exec'd process's file descriptors would counts as a way to set up interprocess communication, but once that's done, it's the pipe or SHM that does the actual communication.
- tliltocatl 4mo agoThe problem with POSIX IPC is that passing file descriptors between processes (other than parent passing to child via fork) is hard. Yes, SCM_RIGHTS can do it, but it is quite error prone and rarely done.
- yencabulator 4mo agoEvery single Wayland and GPU-accelerated X11 app does that all the time.