Answer the following questions about the pseudo code below:…

Answer the following questions about the pseudo code below: Function thread1_func:    Lock m1    Sleep for 1 second    Lock m2    // Do work    Unlock m2    Unlock m1 Function thread2_func:    Lock m2    Sleep for 1 second    Lock m1    // Do work    Unlock m1    Unlock m2 1-What is the likely outcome if both threads attempt to lock the second mutex? 2-Implementing a lock ordering strategy in the provided pseudocode would help to prevent deadlock.

Mothers Against Drunk Driving is a very visible group whose…

Mothers Against Drunk Driving is a very visible group whose focus is to educate the public about the harm caused by drunk drivers. A study was recently done that emphasized the problem we all face with drinking and driving. 250 accidents that occurred on a Saturday night were analyzed. Two items noted were the number of vehicles involved and whether alcohol played a role in the accident. The numbers are shown below: Referring to this scenario, given that 3 vehicles were involved, what proportion of accidents involved alcohol?