Docsity

Homework 2 for Systems Software | CS 0449, Assignments of Computer Science

Toggle sidebar
bg1
CS0449 Written Homework 2
Issued: 07/07/2008
Due: 07/14/2008
1. What are signals? What purpose do they serve?
a. Name two signals that cannot be caught.
i. Why can they not be caught
2. What is Inter-process Communication (IPC)?
a. Name two mechanisms used for IPC
3. Name two mechanisms used for free list management in dynamic memory management and
give their relative advantages and disadvantages.
4. What is internal fragmentation?
a. How can you fix this?
i. What is the potential problem with the purported fix?
5. What is the difference between the First fit and the Best fit algorithms in memory management?
a. What are their relative advantages and disadvantages?
6. What is a file descriptor?
7. What is the major purpose of a system call?
8. Why is it more advisable to read data from disk in chunks?
9. What is the difference between a local static variable and a global static variable?
10. Declare a function pointer to a function that returns an integer pointer and takes in a character
array and an integer as arguments.

Partial preview of the text

Download Homework 2 for Systems Software | CS 0449 and more Assignments Computer Science in PDF only on Docsity!

CS0449 Written Homework 2

Issued: 07/07/

Due: 07/14/

  1. What are signals? What purpose do they serve? a. Name two signals that cannot be caught. i. Why can they not be caught
  2. What is Inter-process Communication (IPC)? a. Name two mechanisms used for IPC
  3. Name two mechanisms used for free list management in dynamic memory management and give their relative advantages and disadvantages.
  4. What is internal fragmentation? a. How can you fix this? i. What is the potential problem with the purported fix?
  5. What is the difference between the First fit and the Best fit algorithms in memory management? a. What are their relative advantages and disadvantages?
  6. What is a file descriptor?
  7. What is the major purpose of a system call?
  8. Why is it more advisable to read data from disk in chunks?
  9. What is the difference between a local static variable and a global static variable?
  10. Declare a function pointer to a function that returns an integer pointer and takes in a character array and an integer as arguments.