ECON 441 Midterm: ECON 441 University of Michigan Exam 1 Spring 03

55 views9 pages
31 Jan 2019
School
Department
Course
Professor

Document Summary

Section : circle one (brecht 8:30) (brecht 1:00) Start time: 7:00 pm end time: 9:00 pm. For the program shown below, assume that all function, library and system calls are successful. /* parameters 0 and 0, not used */ thread_fork("1",null,func1,0,0); void func2(unsigned long notused, void *notused2) /* parameters 0 and 0, not used */ thread_fork("2",null,func2,0,0); func3(0,0); kprintf("b: %d\n", x); x = 20; void func3(unsigned long notused, void *notused2) kprintf("c: %d\n", x); x = 30; If more than one value or a range of values is possible, list all possible values or ranges. If a range or multiple values are possible, give the range or possible values. If it is not possible to determine the value, posssible values or a range, state so and explain why. Assume that all function, library and system calls are successful. If more than one ordering of output is possible choose one of the possible orderings.