New User Special Price Expires in

Let's log you in.

Sign in with Facebook


Don't have a StudySoup account? Create one here!


Create a StudySoup account

Be part of our community, it's free to join!

Sign up with Facebook


Create your account
By creating an account you agree to StudySoup's terms and conditions and privacy policy

Already have a StudySoup account? Login here


by: Mrs. Maximo Lueilwitz


Mrs. Maximo Lueilwitz
GPA 3.95

C. Wallace

Almost Ready


These notes were just uploaded, and will be ready to view shortly.

Purchase these notes here, or revisit this page.

Either way, we'll remind you when they're ready :)

Preview These Notes for FREE

Get a free preview of these Notes, just enter your email below.

Unlock Preview
Unlock Preview

Preview these materials now for free

Why put in your email? Get access to more of this material and other relevant free materials for your school

View Preview

About this Document

C. Wallace
Class Notes
25 ?




Popular in Course

Popular in ComputerScienence

This 3 page Class Notes was uploaded by Mrs. Maximo Lueilwitz on Monday October 19, 2015. The Class Notes belongs to CS 311 at Oregon State University taught by C. Wallace in Fall. Since its upload, it has received 6 views. For similar materials see /class/224492/cs-311-oregon-state-university in ComputerScienence at Oregon State University.

Similar to CS 311 at OSU

Popular in ComputerScienence




Report this Material


What is Karma?


Karma is the currency of StudySoup.

You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!

Date Created: 10/19/15
Final Study Guide means remember everything OK not everything You will not do any socket programming on the nal If I think of new things I will add them to the top of this list in BLUE Know the basic uniX commands such as cd ls wc 1 sort uniq mkdir rmdir rm newgrp chmod chgrp mv cp touch cat bash script that includes if statement for loop use ofbash variables such as 1 2 command substitution such as cat le Regular expressions Use sed and grep Be able to read awk Input redirection output redirection run processes in the background Can you string together uniX commands in a pipe Can you describe what is in an inode How large of a le can be accessed by a certain inode Can you write C code that uses open lseek read write close to solve a simple problem Can you write C code that uses open pipe fork dup2 execlp and wait or waitpid to solve a simple problem Can you draw a diagram with process le descriptor tables a system le desc table and a system inmemory inode table Can you note what changes occur in this diagram when processes open les use dup2 fork and close le descriptors Can you read code and determine what signal handler is being used by speci c processes Can you read a make le and determine what prints on the screen when di erent les are touched and the user types make XYZ Organization of Unix IPC Imight give you a form of ipc from the online chart 0 What is the speed of this form of ipc slow medium or fast 0 Do processes have to be related to use this form of ipc yes or no Related means such that they would inherit something like a le descriptor o What is the size of the information sent between the processes small medium large CS3ll Midterm 2 Study Guide N E 4 V39 0 gt1 Be able to write C code that uses open to create a lock le and remove the lock le to protect a critical section of code Be able to write C code that uses open close lseek read write to accomplish some goal such as writing certain ints oats strings structs at certain places in a le This will not be just a few lines This problem will not be simplistic and will involve linked lists Know how to write an open call that will fail if the le exists Know how to write an open call that will fail if the le doesn39t exist The open command Be able to check the return of system calls for a return of l and call perror if it fails See the link above concerning open commands Look up perror in your text File systems Name 5 types of les What is in a directory le what is in the data blocks What is in a symbolic link le what is in the data block What is in an inode Can you follow the direct block pointers single indirect block pointer double indirect block pointer triple indirect block pointer to locate the data blocks How large a le can be stored given a certain block size How do commands such as ln ln s cp rm affect a directory le Which create a new inode Which change the contents of an existing inode What do the data blocks look like for each le Look over the worksheet we did in class llgtwa gt19 What happens during a system call pg 537 Your answer should be a detailed explanation written in full sentences involving user mode gt kernel mode system call code numbers trap instructions machine registers special return kernel mode gt user mode Simple fork examples How can we have the child process run some code and the parent run dilTerent code Iffork is executed multiple times how many processes result Make up pid numbers and predict the output Who is the original process Who is the parent of the original process Simplistic example include ltstdio hgt include ltstdlib hgt include ltsystypes hgt include ltsysstathgt include ltfcnt1hgt int main int x fork printf 1 am process d and I think d is the value of x n getpid X int y fork printf My pid is d my parent s pid is d My xd and my yd n getpid getppidO x y


Buy Material

Are you sure you want to buy this material for

25 Karma

Buy Material

BOOM! Enjoy Your Free Notes!

We've added these Notes to your profile, click here to view them now.


You're already Subscribed!

Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'

Why people love StudySoup

Steve Martinelli UC Los Angeles

"There's no way I would have passed my Organic Chemistry class this semester without the notes and study guides I got from StudySoup."

Janice Dongeun University of Washington

"I used the money I made selling my notes & study guides to pay for spring break in Olympia, Washington...which was Sweet!"

Bentley McCaw University of Florida

"I was shooting for a perfect 4.0 GPA this semester. Having StudySoup as a study aid was critical to helping me achieve my goal...and I nailed it!"


"Their 'Elite Notetakers' are making over $1,200/month in sales by creating high quality content that helps their classmates in a time of need."

Become an Elite Notetaker and start selling your notes online!

Refund Policy


All subscriptions to StudySoup are paid in full at the time of subscribing. To change your credit card information or to cancel your subscription, go to "Edit Settings". All credit card information will be available there. If you should decide to cancel your subscription, it will continue to be valid until the next payment period, as all payments for the current period were made in advance. For special circumstances, please email


StudySoup has more than 1 million course-specific study resources to help students study smarter. If you’re having trouble finding what you’re looking for, our customer support team can help you find what you need! Feel free to contact them here:

Recurring Subscriptions: If you have canceled your recurring subscription on the day of renewal and have not downloaded any documents, you may request a refund by submitting an email to

Satisfaction Guarantee: If you’re not satisfied with your subscription, you can contact us for further help. Contact must be made within 3 business days of your subscription purchase and your refund request will be subject for review.

Please Note: Refunds can never be provided more than 30 days after the initial purchase date regardless of your activity on the site.