COSC 4330 QUIZ #1 September 20, 1994 CLOSED BOOK. You can have two pages of notes. Each question is worth 20 points. 1. True or False T ___ F ___ In a multiprogramming system, there may be many programs in the system at any time but there is never more than one process T ___ F ___ There are no direct transition from the waiting state to the running state 2. How can the OS prevent CPU-bound processes from monopolizing the CPU? 3. What are the advantages and disadvantages of the microkernel approach for designing operating systems? 4. Which resources does a parent process share with its children? 5. Write the UNIX C code allowing a parent process to wait for the termination of one specific child waitfor (this_pid) int this_pid; /* process ID of child process*/ { } /* waitfor */ --IMPORTANT----IMPORTANT----IMPORTANT----IMPORTANT----IMPORTANT-- Please do not try to answer these questions by yourself BEFORE having a clear idea of what's on the test for which you are studying. Materials covered in each test DO VARY from semester to semester because the pace of the course can change, some materials are be added and other deleted almost every semester. ----------------------------------------------------------------