COMP 3000 Study Guide - Midterm Guide: Virtual Memory, System Call, Strace

261 views16 pages

Document Summary

Assignment 1 solutions: [1] what system call is used to send signals. A: fork is needed to create a new process, and execve is needed to load the program binary into the new process. Execve: [1] dynamically-linked programs are smaller on disk than statically linked programs. A: dynamically-linked programs inherently need more code because they must include the code to load libraries at runtime. They also often load an entire library into memory rather just the functions needed by a program. However, dynamically-linked libraries allow library code to be easily shared between processes. Note: i am confused about the discrepancy in the description of the size of dynamically linked programs on disk as described in the question vs. the answer. A: userspace programs would no longer be alerted to when their child processes terminate. Unless they make wait() calls outside of a signal handler, they will never see the return value of their child processes and they will remain zombies.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents