Midterm Spring 2002 - Midterm Spring 2002 Name: 1. Answer...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Midterm S pring 2002 Name: 1. Answer True/False (T/F) (1 point each) ____ The call dup2() will show in the truss output. ____ There is a set of registers for every kernel level thread in the process table. ____ The cost of a multiprocessor computer grows linearly with the number of CPUs. ____ A parent and a child process may communicate by a pipe created by the child. ____ The function strcat(a,b) allocates strlen(a) + strlen(b) + 1 bytes of memory using malloc. ____ Disabling interrupts could be used to enforce mutual exclusion. ____ A program that runs with non- preemptive scheduling may deadlock. ____ The user time in the time command may be smaller than the system time. ____ An exit code of 1 in UNIX means success. ____ When a process calls fork, the number of open file objects in the kernel remain the same. ____ Programs that run preemptive scheduling finish sooner than programs that run with non-preemptive scheduling. ____ A program needs to run in kernel mode to install an interrupt handler in the interrupt vector. ____ The size in bytes of a variable of type (char *) is 1 byte. ____ Kernel threads in the same process share the same file descriptors. ____ The time command in mentor could show that the user time is larger than the real time in a multi-threaded program. ____ After forking a process, if an environment variable is modified in the parent it
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/30/2012 for the course CS 252 taught by Professor Gustavorodriguez during the Fall '11 term at Purdue University-West Lafayette.

Page1 / 7

Midterm Spring 2002 - Midterm Spring 2002 Name: 1. Answer...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online