Problem 1:
Figure below contains seven states. In principle, one could draw a transition between any two states, for a total of 42 dierent transitions (do you see why this is true?).
Questions 1. List all of the possible transitions, e.g. all of the transitions that could be allowed and would be possible. Give an example of what could cause each transition.
Questions 2. List all of the impossible transitions, e.g. all of the transitions that cannot occur. Explain why you believe each transition is impossible.
############################################################
Questions 1. What does this program accomplish? Please describe what happens with the global value myglobal. What does the thread_function() do and when does it run? What is the main() funciton doing? What is sleep() and what purpose does it serve?
Question 2. Here is output from the above program being executed
$ ./thread2 ..o.o.o.o.oo.o.o.o.o.o.o.o.o.o..o.o.o.oo
myglobal equals 21
Is this the output you would expect? If not, what has gone wrong and how would you x it (please show code)?