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

Operating Systems

by: Jamaal Franecki

Operating Systems CS 3100

Jamaal Franecki
Weber State University
GPA 3.7

Delroy Brinkerhoff

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

Delroy Brinkerhoff
Class Notes
25 ?




Popular in Course

Popular in ComputerScienence

This 7 page Class Notes was uploaded by Jamaal Franecki on Wednesday October 28, 2015. The Class Notes belongs to CS 3100 at Weber State University taught by Delroy Brinkerhoff in Fall. Since its upload, it has received 37 views. For similar materials see /class/230777/cs-3100-weber-state-university in ComputerScienence at Weber State University.

Similar to CS 3100 at Weber State University

Popular in ComputerScienence


Reviews for Operating Systems


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/28/15
Lab 3 Review Windows processes structs amp bit elds and bit masks QM Windows Process Creation Command line arguments passed individually I intptrt spawn int mode PWAT or PNOWAT const char cmdname const char argO const char arg1 const char argn NULL QM Windows Process Creation Command line arguments passed in a vector v intptrt spawnv int mode PWAT or PNOWAT const char cmdname full path to command const char argv em Windows Process Creation Arguments passed in a vector v command in path p intptrt spawnvp int mode PWAT or PNOWAT const char cmdname command name only const char argv QM Pointer and Address Operators Pointers are variables that contain memory addresses pointertype specifier variable definitions amp declarations tYPe t gt type p same as below gt type p same as above I amp address of operator returns the address of variables dereference or indirection operator expressions I Operator relationships gt p is assignment compatible with t ie t p gt ampt is assignment compatible with p ie p ampt gt ampvariable 2 variable ISpecial pointers that point to nothing gt NULL gt 0 zero QM Address Operators Memory content vs memory address int i i 0x0a000010 iis unde ned p is 0x0a000010 39 39 Int p ampI p 0x0a000010 0x0a000014 pis unde ned i10 i 0x0a000010 iile pis 0x0a000010 p IS now 10 p 0x0a000010 0x0a000014 p is 10 9 struct Examples struct variables and struct pointers I struct date When int year int mon int day datePtr Idate when date datePtr ISpace is not allocated by struct declarations only by variable definitions I struct declarations often go in header files QM Structure Function Arguments Passing structs by value and by address void printDate1 date D void printDate2date D cout ltlt Dyear ltlt endl cout ltlt Dgtyear ltlt endl cout ltlt Dmon ltlt endl cout ltlt Dgtmon ltlt endl cout ltlt Dday ltlt endl cout ltlt Dgtday ltlt endl date newYears date newYears 112004 111998 printDate1newYears printDate2ampnewYears QM struct vs union Memory layout and consumption struct demo l I char c double d h gt union constant char c int i double d QM Bit Fields Small oddsized data I Based on structs ie are an extension of the struct syntax I Used to access nonstandard sized data ie not 1 2 4 or 8 bytes usually less than 1 byte 8 bits I Each field is followed by a size measured in bits I Example struct tag unsigned int field1 3 unsigned int field2 7 unsigned int field3 6 QM Bit Field Example U From stat cpp struct modes l 16 7 unsigned int type 7 unsigned int user 3 unsigned int group 3 I I 3 I 3 I 3 I unsigned int others 3 nion shorttomodes 16 I unsigned short statmode struct modes conv mm Bitwise Operations Booleanlike operations I Bitwise operators left and right hand operands are integers Iamp bitwise and 1100amp10011000 bitwise or 1100 1001 1101 Iquot exclusiveor 1100quot10010101 complement 11000011 alblaampb alblalb aIbIaAb a a 00 0 0 0 0 00 0 1 0 01 0 01 1 01 1 0 1 10 0 1 0 1 10 1 1 1 1 1 1 1 1 1 0 QM Bitwise AND Used to extract or unpack information I Bitwise AND with a bitmask is used to mask out or switch bits off I Mask is usually given as a symbolic constant or in hexadecimal or occasionally octal 110110 data 1 N M 1de mask00011111 ill 1 00010110 result QM Bitwise OR Used to encode or pack information I Bitwise OR with a bitmask is used to switch bits on I Mask is usually given as a symbolic constant or in hexadecimal or occasionally octal 10110110 data g4gg 39 mask 11100000 11110110 reSUIt QM


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

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!"

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!"

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."

Parker Thompson 500 Startups

"It's a great way for students to improve their educational experience and it seemed like a product that everybody wants, so all the people participating are winning."

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.