Question: (Programming Assignment: fork gymnastics) Write a C/C++ program (call it string.invert) that takes a string argument from the command line and outputs the string in

 (Programming Assignment: fork gymnastics) Write a C/C++ program (call it string.invert)

that takes a string argument from the command line and outputs the

(Programming Assignment: fork gymnastics) Write a C/C++ program (call it string.invert) that takes a string argument from the command line and outputs the string in reversed order. You have two constraints: Constraint 1: Each process can output at most one character. If you want to output more than a single character, you must fork off one or more processes in order to do that, and each of the forked processes in turn outputs a single character Constraint 2: Eacorkeofa oeer procesm After the call to program string-invert with the command line argument, the output should appear, and no more processes should be running, in addition to the shell. Test your program on any UNIX/LINUX machine, and turn in the source code as part of the written assignment. 80

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!