Find Jobs
Hire Freelancers

Develop a Mac Application

€8-30 EUR

Closed
Posted almost 8 years ago

€8-30 EUR

Paid on delivery
Question 1 Ten threads share an integer array that is initialized by main. Each thread when accessing the shared array has exclusive access. This means that no other thread in the group will be accessing it at that time. Hence, locking is not required. The threads agree to access the threads in sequence where the order of the sequence is determined by main. All the threads are released at the same time and may be executed by the scheduler in any order. However, they may only access the data in the sequence pre-determined by main. In effect this means that each thread must wait for earlier threads in the sequence to complete before accessing the data. There are three kinds of thread: TA adds x to each element in the array; TB decrements each element in the array and TC squares each element in the shared sequence. The number of each kind of thread is determined by main. (Hint: Ask yourself how many Semaphores do I need?) 3 thread Each thread do something different Question 2 Re-write the dining philosophers using Semaphores to manage access to the shared resources. The problem of deadlocks can be solved by making one of the philosophers left handed. Use this approach to avoid deadlocking.
Project ID: 10104757

About the project

1 proposal
Remote project
Active 8 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
1 freelancer is bidding on average €105 EUR for this job
User Avatar
Hello I can answer the questions as well as write the code for you. I really like Operating Systems and had the highest grade back at university on the OS class (not to mention I had completed multiple multithreaded/parallelized applications afterwards).
€105 EUR in 1 day
4.9 (31 reviews)
7.6
7.6

About the client

Flag of IRELAND
Dublin, Ireland
4.9
6
Payment method verified
Member since Mar 18, 2016

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