Question: Question 2 process must count the numbers. Both Execute the following command to create a child processes must print their results on data.txt file which

 Question 2 process must count the numbers. Both Execute the following

Question 2 process must count the numbers. Both Execute the following command to create a child processes must print their results on "data.txt" file which contains 100.000 screen. In the meanwhile, parent process random letters and numbers: must display child process ID's on screen and wait for both processes to end. cat /dev/urandom | tr -dc 'a-20-9' | fold -w 100000 head -n 1 > data.txt Sample Run $ ./question2 Now write a C program which creates two [PARENT] Child process ID: 3587 child processes. The first child process (CHILD1] Number of letters: 58392 must count the letters, while the other child (CHILD2] Number of numbers: 41608 [PARENT] Child process ID: 3588

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!