We have already seen the importance of processes in the Unix operating system, so now we will look at how to obtain information on the current process and how to create and handle child processes.
Understanding processes
Current process
The Go standard library allows us to get information on the current process. This is done by using a series of functions that are available in the os package.Â
Standard input
The first two things that a program may want to know are its identifier and the parent identifier, that is, PID and PPID. This is actually pretty...