Normal average normal body temperature is 98.6 oF.  Three ch…

Normal average normal body temperature is 98.6 oF.  Three children have their temperature taken at a doctor’s office.  The first child has a temperature of 310 K.  The second child has a body temperature of 98.5 oF.  The third child has a body temperature of 39.1 oC.  Which child is running a fever (A fever is considered 100F or higher).  

The psuedocode of Lamport’s bakery algorithm is given below….

The psuedocode of Lamport’s bakery algorithm is given below. Fully explain why the “choosing” phase is necessary. boolean[n] choosing;int[n] ticket;startThreads();Txvoid main() { int x = threadNumber; while (!done) { choosing[x] = true; ticket[x] = maxValue(ticket) + 1; choosing[x] = false; for (int i = 0; i < n; i++) { if (i == x) continue; while (choosing[i] == true) ; while (ticket[i] != 0 && ticket[i] < ticket[x]) ; if (ticket[i] == ticket[x] && i < x) while (ticket[i] != 0 && ticket[i] == ticket[x]) ; } /* CRITICAL SECTION GOES HERE */ ticket[x] = 0; /* non-critical code */ }}