11. One problem with process synchronization is when one action must occur before another action. Given the code below,
Posted: Fri May 20, 2022 10:20 am
11. One problem with process synchronization is when one action must occur before another action. Given the code below, we want to guarantee that a 1 happens before b2; and b1 happens before a2. Write the pseudocode for this problem. In writing your solution, be sure to declare and initialize the semaphore(s) or mutexe(s) that you need. Your solution must not result in deadlock. [5 points] 1 Global variables // Main Function int main() { startThread (threadA) ; start Thread (threadB); // ThreadA Function void threadA() { // Thread B Function void threadB() {