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]; whileundefined

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

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!