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

Computer System Concepts

by: Abe Jones

Computer System Concepts CS 350

Abe Jones
GPA 3.77

Bojan Cukic

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

Bojan Cukic
Class Notes
25 ?




Popular in Course

Popular in ComputerScienence

This 3 page Class Notes was uploaded by Abe Jones on Saturday September 12, 2015. The Class Notes belongs to CS 350 at West Virginia University taught by Bojan Cukic in Fall. Since its upload, it has received 9 views. For similar materials see /class/202751/cs-350-west-virginia-university in ComputerScienence at West Virginia University.

Similar to CS 350 at WVU

Popular in ComputerScienence


Reviews for Computer System Concepts


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: 09/12/15
include ltstdiohgt include ltsystypeshgt include ltunistdhgt int main int x x0 fork x1 printf 1 am 1d xd n 10nggetpid x return 0 Program output 1 am 21041 x1 1 am 21040 x1 include ltstdiohgt include ltsystypeshgt include ltunistdhgt int main pidit Childipid childipidfork if childipi 1 printfquotFailed to forknquot return 1 if childipid Chi1d code printfquot1 am the Child pidldnquot10nggetpid else printfquot1 am the parent pidldnquot10nggetpid return 0 Program output 1 am the Child pid21099 1 am the parent pid21098 How to synchronize parentchild execution include ltstdiohgt include ltsystypes hgt include ltunistdhgt int main pidit childipid int i childipidfork if child pidltO printhquotFailed to forknquot exit l if childipid child code for iO ilt5 i printfquotid else parent code waitNULL for i5 iltlO i printfquotid pidldnquotilonggetpid pidldnquotilonggetpid child amp parent printfquotProcess ld parent ld nquotlonggetpidlonggetppid return 0 Program output 10 pid2l266 Process 21265 21266 21266 21266 21266 1266 21265 21265 21265 21265 parent 21265 parent 20976 Creating include include include int mainint argc a Chain of processes ltstdiohgt ltsystypeshgt ltunistdhgt char argv pidit childipid0 int i n if argcl2 fprintfstderrquotUsage return 1 s processesnquotargv0 natoiargv1 for iO iltn i if childipidfork break 1d parent 1D1d nquot longgetppid printfquoti d processID i longgetpid return 0 Program output fittlhomeCukiCcs350fork aout 3 i 3 processID 21512 parent 1D21511 i 2 processID 21511 parent 1D21510 i 1 processID 21510 parent 1D221509 i O processID 21509 parent 1D220976 mn atoiargv1 for iO iltn i if childipidforklt0 break 1d parent 1D1d nquot printfquoti d processID 39 longgetppid 1 longgetpid return 0 Program out ut fittlhomeCukiCcs350fork aout 3 i O processID 21546 parent 1D21545 i 1 processID 21547 parent 1D21545 i 2 processID 21548 parent 1D21545 1 3 processID 21545 parent 1D220976


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

Jim McGreen Ohio University

"Knowing I can count on the Elite Notetaker in my class allows me to focus on what the professor is saying instead of just scribbling notes the whole time and falling behind."

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.