Write a C program to create a hierarchy of processes as shown in figure.


Parent


Child1 Child 2 Child3 Child4

First child process should display the information regarding users (users login, how many users etc). Second child should display system characteristics (the CPU characteristics, other system properties, memory, OS name, OS type, etc).Third child should fork for one more child process. Fourth child should display the name, age and qualification of the user doing the program. The parent process waits for all children’s to terminate and displays the process id of all processes.

do your own assignment

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.