Question 4 6 pts Which functions below are not thread safe? (assume no compiler issues) void...
Question 4 6 pts Which functions below are not thread safe? (assume no compiler issues) void deposit(struct account* act, int amt) act->balance+amt void withdraw(struct account act, int amt) act->balanceamt void printBalance(struct account act) printf("Balance of account %s-%d", act-name, act-balance); printBalance deposit D withdraw Question 5 6 pts For a race condition to occur, which of the below conditions must be met? No concurrency controls Accessing a shared resource O Multiple threads executing Blocking must exist around critical sections Mutual exclusion must be enforced O The code must be atomic