As we know, System calls provide an interface to the services that are available by the operating system. It is a mechanism in which a computer program requests a service from the kernel of the OS.

In this blog, I will cover fork() system call. fork() is used to create a new process by duplicating the calling process. The new process is referred to as the child process. The calling process is referred to as the parent process. Both child and parent process have their unique process id. The child’s parent process id is same as parent process id.

In this blog, I will show how we can use fork() in Rust. Add [nix](https://crates.io/crates/nix) in cargo.toml. This dependency provides Rust friendly bindings to *nix APIs.

#rust #rust programming language

Linux System Call `fork()` in Rust
5.80 GEEK