Study your flashcards anywhere!

Download the official Cram app for free >

  • Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off

How to study your flashcards.

Right/Left arrow keys: Navigate between flashcards.right arrow keyleft arrow key

Up/Down arrow keys: Flip the card between the front and back.down keyup key

H key: Show hint (3rd side).h key

A key: Read text to speech.a key


Play button


Play button




Click to flip

11 Cards in this Set

  • Front
  • Back
What resources are inherited acros
-PID and parent PID
-real UID and parent GID
-Session ID
-Controlling Terminal
-Time left until alarm signal.
-Pending (blocked) signals.
-root directory
Review the kernel startup process.
1. BIOS begins executing, discovers devices, loads basic BIOS drivers, loads kernel into memory, transfers control to first instruction of kernel.

2. Kernel begins executing (possibly decompresses).

3. Kernel Initializes - memory is configured, interrupt vectors are set up. Device drivers initialized. Scheduling started. Printk("ag Burgers") from lab 1. Start kernel threads. Start the first process.
What is the name of the first process that is the parent of all other processes in UNIX?
What are threads?
Threads are multiple execution contexts within a single process.
What resources are unique to a thread and what resources are shared between threads?
Unique to a thread:
-CPU registers (general purpose, PC)

Shared between threads:
-Address space (global, static vars)
-open files
-child procs
-signals,pending signals, signal handlers
-accounting information
What are the benefits of threading?
-Easy way to support concurrent users.
-Easier to create
-Performace enhancement
What is the biggest benefit of threadsover processes?
Synchronization overhead.
What are two design patterns for working with threads?
What is a non-reentrant system call?
A non-reentrant system call is one that cannot be called simultaneously from within the same process.
Name two types of thread models.
Kernel threads and user threads.
What are the pros and cons of user threads?
-Smaller overhead
-more control over scheduler
-somewhat more portable

-One blocking system call blocks entire process
-Doesn't provide multi-core or multi CPU support
-handling signals is difficult