2009 First exam

2009 First exam - 2009 First exam Your name: _ 1....

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

View Full Document Right Arrow Icon
2009 First exam Your name: _________________________ 1. True/False Questions (write F or T) (10 points, 1 point each) __ The linker adds shared libraries (.so files) to the executable file when it builds a program. __ In a 32-bit architecture, a pointer to an array of pointers defined as “char *(*a)[5]”. If “a” has the value 1000, “a+1” points to the address 1020. __ In Preemptive Scheduling a context switch happens only when the running process goes to a waiting state or when the process gives up the CPU voluntarily. __ An operating system is a program that can be compiled with a normal compiler. __ A call to strcat(a,b) will allocate space with a number of bytes equal to the length of string "a" plus the length of string "b" plus 1. __ A canary is a process that gets killed and transformed into a zombie. __ The data section stores initialized global variables. __ A signal that isn't specifically handled by a process, is automatically ignored. __ A context switch is always the result of an interrupt. __ Asynchronous I/O relies on polling. Short Questions 2. Exec calls a) Compare “exec” calls variants by identifying 2 features that can make them more or less safe to use, and explain why (you don't need to remember the exact name of the “exec” call variants, as long as you can discuss the features). (2 points) _____________________________________________________________________ ____________ _____________________________________________________________________ ____________ _____________________________________________________________________ ____________
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.

Page1 / 6

2009 First exam - 2009 First exam Your name: _ 1....

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