- What applications are available for the current process inside a Go application?
The applications available for a process are PID (process ID), PPID (parent PID), UID and GID (user and group ID), and the working directory. - How do you create a child process?
The exec.Cmd data structure can be used to define a child process. The process gets created when one of the Run, Start, Output, and CombinedOutput methods gets called. - How do you ensure that a child process survives its parent?
By default in Unix systems, a child survives if the parent terminates. Additionally, you can change the process group and session ID of the child in order to ensure that it survives the parent. - Can you access child properties? How can they be used?
One of the biggest advantages is to access the child PID to persist it somewhere, such as on the disk. This will allow another instance of...
Germany
Slovakia
Canada
Brazil
Singapore
Hungary
Philippines
Mexico
Thailand
Ukraine
Luxembourg
Estonia
Lithuania
Norway
Chile
United States
Great Britain
India
Spain
South Korea
Ecuador
Colombia
Taiwan
Switzerland
Indonesia
Cyprus
Denmark
Finland
Poland
Malta
Czechia
New Zealand
Austria
Turkey
France
Sweden
Italy
Egypt
Belgium
Portugal
Slovenia
Ireland
Romania
Greece
Argentina
Malaysia
South Africa
Netherlands
Bulgaria
Latvia
Australia
Japan
Russia