CS252 Systems Programming

CS252 Systems Programming - CS252 Systems Programming...

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

View Full Document Right Arrow Icon
CS252 Systems Programming Midterm Exam Preparation Part 1. True False Questions Answer True/False (T/F) (1 point each) ____ ELF stands for Executable Link Format. ____ A process has a stack for every thread it contains. ____ A process ID may be reused ____ Race conditons are more likely to happen in multiprocessor machines. ____ In POSIX threads, the thread calling fork will create a child process that is a copy of the parent inclluding all the threads in the process. Part 2. Short questions. 2. Write down the fields of an i-node 3. Explain what is deadlock and what is starvation and give an example of each. 4. What are the advantages and disadvantages of using threads vs. using processes?
Background image of page 1

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

View Full DocumentRight Arrow Icon
5. Mention three important files that are stored in /etc in UNIX. 6. In the following code, T1: b) mutex_lock(&m5); c) mutex_lock(&m1); T2: e)mutex_lock(&m5); f)mutex_lock(&m4); T3: g)mutex_lock(&m4); h)mutex_lock(&m3); i)mutex_lock(&m1); a) give a sequence of steps using the letters at the left of each statement that will cause
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 10

CS252 Systems Programming - CS252 Systems Programming...

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

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