Re:Redox: Unix-Like Operating System in Rust
by sntran on Friday September 11, 2020 @08:41PM
(#24448842)
I have been curious about OS, particularly how a process for a command is handled through it's life cycle, and also things like how redirection works (for things like named pipes). Is there some resources on that topic? Searching for how OS works is very vague or too details in other aspects.
[ Parent
| on HN ]
Re:Redox: Unix-Like Operating System in Rust
by halayli on Friday September 11, 2020 @09:28PM
(#24449073)
You'll find all the answers in the book 'Advanced Programming in the UNIX environment' by Richard Stevens. It's also referred to by the acronym APUE.
Re:Redox: Unix-Like Operating System in Rust
by higerordermap on Saturday September 12, 2020 @12:09AM
(#24449775)
> particularly how a process for a command is handled through it's life cycle
fork(), execve(), waitpid() and friends
> also things like how redirection works
dup() ing file descriptors. dup2 is atomic alternative to separately closing a file descriptor and dup'ing to it.
xv6 book is freely available on MIT website - it teaches implementation of toy Unix like operating system.. as another commenter mentioned APUE is pretty popular too.