nazmulidris / rust-scratch

This is a repo full of explorations into various Rust language features and crates. They are written for didactic exposition where possible. In the future, these can be turned into tutorials on developerlife.com or videos on the developerlife.com YouTube channel
https://developerlife.com
47 stars 7 forks source link

[vfork] explore vfork as process spawning mechanism in rust #70

Open nazmulidris opened 1 week ago

nazmulidris commented 1 week ago

https://maelstrom-software.com/blog/spawning-processes-on-linux/

my tty example in rust-scratch (and related videos) do a deep dive of posix & fork syscall. add vfork to the repertoire since it might be a performance drop in replacement for use cases that require lots of spawning of child processes (for whatever reason, not sure of the use case yet)