Find Jobs
Hire Freelancers

System Programming UNIX : Chores using Threads

$30-60 USD

Completed
Posted almost 12 years ago

$30-60 USD

Paid on delivery
In UNIX system programming Goals 1. To make a simple program by adding threads as a means for cooperation among Mom and the kids. 2. To use shared memory with appropriate synchronization and locking. * (Attached file can be used to add and extend the threads in UNIX program instructions) General Instructions about this Coding Program Implement shared memory that contains the task list, the clock, and a child-counter, initialized to 0. Create and initialize a mutual-exclusion lock, to be used to protect the shared memory. The original process, Mom, should initialize the shared memory and create four threads for the four children. When each child starts up, it will copy the current value of the child-counter from shared memory into its own memory and use that as its ID#. Post-increment the child-counter when copying it. Use the ID# and a switch in the child-code to select and call one of the four job-preference functions. That function should look at the jobs in the task array, choose one, then do it. Continue the loop (select, sleep, add points to local total, post results) until the clock reaches 20. Then send Mom the points you earned. Either Mom or each kid should print out the earnings. Mom should print the winner. Of course, Mom must not terminate until all four kids have nished. Please submit everything in one zipped file Include source code and output that shows you are able to complete one work day. Run this program several times and submit all the results, including the list of jobs done by the children, their nalscores, and the winner.
Project ID: 1705485

About the project

4 proposals
Remote project
Active 12 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hi sir. I am a qualified programmer. I can do this task. Kindly check pmb. Thank you
$45 USD in 1 day
5.0 (30 reviews)
4.7
4.7
4 freelancers are bidding on average $55 USD for this job
User Avatar
Interesting program! Regards!
$60 USD in 1 day
4.7 (3 reviews)
3.5
3.5
User Avatar
Hello! I have experience in multithreading jobs, as you can see in my freelancer profile. I'm looking forward to work for you.
$55 USD in 1 day
5.0 (2 reviews)
2.5
2.5
User Avatar
Custom Software Development - <b><i>Removed by Admin</i></b>
$60 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Dubai, United States
0.0
0
Payment method verified
Member since Jun 19, 2012

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759) & Freelancer Online India Private Limited (CIN U93000HR2011FTC043854)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.