4 ms·
With that method you can only express 1-1 relationships. Usually in real systems you have N-M. Your method is also linear, it has to wait for one line to comple
by Too 8y ago
With that method you can only express 1-1 relationships. Usually in real systems you have N-M. Your method is also linear, it has to wait for one line to complete before running the next even though they don't depend on each other. Parallel execution is one of the reasons systemd boots so much faster than it's predecessor.
- rleigh 8y agoExcept that it doesn't, in practice, boot any faster at all. Most times I measure it, it's actually slower. And by the way, its predecessor, with insserv and startpar, also supported parallel execution of init scripts.
- Too 8y agoNot familiar with insserv or startpar but there is a difference between supports and supports. Most systems support everything in the sense that it's turing complete but it should be easy to do it without creating spaghetti also. Not saying systemd is the best or only system that can do this, it was just an example, but older ones usually make it very messy.
- rleigh 8y agoIt was supported for many years by the LSB standard init headers which were used to compute a dependency graph for parallel execution.