Question: undefined void main(int argc, char *argv[]) { char *str = argv[1]; while (1) printf(%s, str); } Two processes, running instances of the program above, are
undefined
void main(int argc, char *argv[]) { char *str = argv[1]; while (1) printf("%s", str); } Two processes, running instances of the program above, are currently running (you can assume nothing else of relevance is, except perhaps the shell itself). The programs were invoked as follows, assuming aparallel command" as per project 2 (the wish shell): wish> main X & main Y Below are possible (or impossible?) screen captures of some of the output from the beginning of running the programs. Select all possible outputs. XYXYXYXY XXXXXXXX YYYYYYYY XXXXYYYY YYYYXXXX Question 9 (2 points) Saved
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
