How Software Gets Done  


Login

Software Buyers
Request bids
Search coders
My Buyer Account
Buyer help
Buyer articles
Buyer FAQ
Latest news
 
Software Coders
Newest open work
Browse all work
Search all work
My Coder Account
Coder help
Coder articles
Coder FAQ
Latest news
 
Affiliates
My Affiliate Account
Affiliate help
Affiliate FAQ
Latest news
 
Newest Bid Requests.
component for changing partition
By delphiheaven on Jul 12
Max Bid: Open to fair suggestions


WebQuiz
By DigitalBuyer on Jul 12
Max Bid: Open to fair suggestions


Simple 1-Page Website Redesign
By BuffaloRoam on Jul 11
Max Bid: Open to fair suggestions


web server Script to launch external program
By gulyasa on Jul 11
Max Bid: $20


New Site Design to Appeal to the Masses!
By sistervisiontec h on Jul 11
Max Bid: $100


JDBC/mySQL performance problem
By demosfen on Jul 11
Max Bid: Open to fair suggestions


Click here to put this ticker on your own site and/or get live RSS newsfeeds

Open Work Categories.
Database 
(145 open)
   Access 
(56 open)
   MySQL 
(79 open)
   Oracle 
(10 open)
   SQL Server 
(48 open)
   Other DB 
(19 open)
Documentation / Tech Writing 
(15 open)
Data Entry 
(21 open)
Game Development 
(26 open)
Graphics / Art / Music 
(54 open)
   Graphics 
(60 open)
     Adobe AfterEffects 
(1 open)
     Adobe Photoshop 
(19 open)
     Adobe Premiere 
(4 open)
     3d Animation 
(15 open)
   Art (Misc.) 
(20 open)
   Music 
(11 open)
   3d Modeling 
(12 open)
Language Specific 
(92 open)
   ASP 
(59 open)
   ASP .NET 
(38 open)
   C# 
(38 open)
   C++ / C 
(108 open)
   Carbon (Mac OS) 
(1 open)
   Cocoa / Obj-C 
(2 open)
   Cold Fusion 
(13 open)
   Delphi 
(26 open)
   Java 
(61 open)
   JSP 
(7 open)
   Perl 
(42 open)
   PHP 
(86 open)
   XML/XSL 
(30 open)
   Visual Basic 
(144 open)
   Visual Basic .Net 
(58 open)
   Other 
(52 open)
Misc 
(27 open)
   CAD 
(3 open)
MultiMedia 
(41 open)
   Video Editing 
(6 open)
Network 
(41 open)
   Network Design 
(12 open)
   Network Implementation 
(12 open)
Platforms 
(73 open)
   Windows 
(171 open)
     MS Exchange 
(5 open)
     MS Office 
(14 open)
     Other 
(14 open)
   Darwin 
(1 open)
   Internet Browser 
(43 open)
   Linux 
(56 open)
   UNIX 
(26 open)
   Hand Held/PDA Programming 
(9 open)
Requirements 
(13 open)
Security 
(30 open)
Testing / Quality Assurance 
(18 open)
Web 
(149 open)
   Page Design 
(81 open)
   Flash 
(45 open)
   Web Services 
(71 open)
   Web (Other) 
(69 open)
Training 
(10 open)
   Computer Based 
(10 open)
Other
 
Other Sites

Download the free Rent A Coder IE toolbar!
 
Show Bid Request

fork
Bid Request Id: 2851
Bookmark in my 'To Do' list
Posted by: 49ers (5 ratings)
(Software buyer rating 10)
Non-action Ratio: Very Good - 20.00%
Buyer Security Verifications: Unverified
Approved on: Sep 22, 2001
12:40:07 AM EDT
Bidding Closes: Sep 24, 2001
12:47:10 AM EDT
Viewed (by coders): 398 times
Phase:
100% of work completed and accepted. Coder has been paid.
Max Accepted Bid: Bidding is closed
Project Type: Question or Beginner / Newbie Assistance
Bidding Type: Open Auction
Categories: C++ / C
Enter chat room for this bid request
(0 active users at Jul 12, 2003 8:03:02 AM EDT)

Description:
Write a program in C which meets the following specifications. Remember to include comments. In this program, interfaces (i.e function names, argument types and order) must be followed explicitly.
1.Print a message indicating that the program has started.
2. Initialize a counter variable called ProcessIDCounter to 0.
3. Fork the program and exit gracefully with an error message if the fork fails.
4. Print a message from the parent process indicating the the process id of the child that has been created, i.e. "Spawned new child process 5928."
5.For both the child and the parent:
a. Call a function process_id() which has the following specifcation with your counter variable as the parameter.
*Function process_id takes one pass by reference parameter of type integer and no return type.
*Print a message indicating the the id of the running process and its parent: "Process 5928 with parent 5917." * you can use the system call getpid() (hint: man getpid) to retrieve the id of the process. System calls of a similar nature are frequently grouped on the same manual page, look there to determine how to get the parent process id.
*Increment the variable which is passed to the routine..
b. After the call to process_id(), print to standard output the value of the counter which will have been incremented.
Questions For Further Understanding
b. After you have completed the assignment, answer the following questions either as comments or on a separate page. As always, complete sentences are expected.
Did you get the value you expected for the counter? Why or why not?
Were you surprised that the main process has a parent id? Where do you think it may have come from? Hint: After running your program, type "echo $$" from the shell prompt on any of the standard UNIX shells (Bourne shell /usr/bin/sh, Korn shell /usr/bin/ksh, C shell /usr/bin/csh, or any of their derivatives).


Deliverables:
Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.


Special Conditions / Other:
must be done by Monday 9/24/2001


Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements. We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation. If you notice a violation please help out the site and report it. Thanks for your help.
 
Bidding/Comments:
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests.

See all rejected bids (and all comments)
Name   Bid Amount 
 
Date   Coder Rating  
This bid was accepted by the buyer!
shibaji
(10 ratings)
in Calcutta, West Bengal
India
Bid id: 23,902
 
$20 (USD) Sep 22, 2001
10:48:59 AM EDT
 9.1
(Superb)
   
I can give it to you before Monday morning (your time), i.e., you will receive it on Monday morning. I am also doing the java assignment for you. Please accept the bid if it is fine for you.

Regards.
 




Quick Bid Request Search
 Advanced Search
Newest Open Work
Latest News  
Credentials


 

 
Rent A Coder upholds the rigorous business practices required to be both a BBB member and Square Trade vendor.
  • All customer issues addressed within 2 days
  • Openly disclosed pricing and return policies
  • Participation in mediation at buyer request
  • Superior selling track record
This site is verified through its parent company, Exhedra Solutions, Inc.
 
Top Coders.

Anuj Gakhar
Rated a 9.97 on 102 jobs 
Securenext
Rated a 9.96 on 109 jobs 
Buddies
Rated a 9.82 on 80 jobs 
Andrei Remenchuk
Rated a 10 on 13 jobs 
Codman
Rated a 9.97 on 149 jobs 
Michael Sharp
Rated a 9.97 on 181 jobs 
D-N-S
Rated a 9.93 on 37 jobs 
markesh
Rated a 10 on 22 jobs 
teleCODERS
Rated a 9.93 on 67 jobs 
Tometa Software, Inc.
Rated a 10 on 10 jobs 

See all top coders...

(What makes a top coder?)

Top Exam Scorers

 
Other
Rent A Coder is PayPal verified through its parent company, Exhedra Solutions, Inc.

Created in partnership with:

 

Affiliate Sites
Latest News | About Us | Kudos | Feedback/Contact    Affiliates | Advertise    Privacy | Legal

Copyright © 2001, Exhedra Solutions, Inc. All rights reserved.
By using this site you agree to its Terms and Conditions.
"Rent A Coder" (tm), "Safe Project Escrow" (tm) and "How Software Gets Done" (tm)
are trademarks of Exhedra Solutions, Inc.