Question: a. Explain briefly what the above code is supposed to do. b. List the order in which you expect the text to be displayed by

 a. Explain briefly what the above code is supposed to do.

a. Explain briefly what the above code is supposed to do. b. List the order in which you expect the text to be displayed by the "writeln" statements.

program ThreadTestl sub thread1 as thread writeln ("In threadl") while true wend end sub suh thread2 as thread call thread1 writeln ("In thread2") while true wend end sub call thread2 writeln (In main") do loop end

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!