Closed

regarding semaphores and mutex locks!!! - open to bidding

Jurassic Park consists of a dinosaur museum and a park for safari tiding. There are n passengers and m single-passenger cars. Passengers wander around the museum for a while, then line up to take a ride in a safari car. When a car is available, it loads the one passenger it can hold and rides around the park for a random amount of time. If the m cars are all out riding passenger around, the passenger who wants to ride waits; if a car is ready to load but there are no waiting passengers, then the car waits. Use semaphores to synchronize the n passenger threads/processes and the m car threads/processes.

Submit all of your project’s source code using the submission command to the Linux server.

1. Write program in C language using Pthreads API to simulate the following IPC problem. Refer to Section 5.9.4 for specific instructions on mutex locks and semaphores.

2. If there are multiple files in your submission, you need to provide a makefile as well.

3. Make sure to use mutex locks or semaphores to synchronize the processes/threads.

4. Display messages to the screen to show the state of the system. A good way to validate your program running correctly is to perform some simple output messages to show the state of the system. You can experiment with these messages, but in general you want to demonstrate what each thread is doing. You can use an integer number to identify each thread.

5. If your program needs any arguments in command line (for example, number of passengers and number of cars), you need prompt proper message for the arguments and also valid the input.

6. You may consider how to terminate your program. There are many options. For example, terminate after serving the passengers a given number of times (each service means that one car is used by one passenger). You need to explain this in your code or output as message

Provide specific answers to the following questions.

1. How many threads/processes are there?

2. What does each thread/process simulate?

3. Will each thread/process be blocked at some time of simulation? If yes, explain the circumstances.

4. When will a blocked thread/process be waked up, and by whom?

5. How many semaphores are there in your project, what is the purpose for having each?

Skills: C Programming, C++ Programming, Database Development, Linux, Shell Script

See more:

About the Employer:
( 0 reviews ) United States

Project ID: #15646599

15 freelancers are bidding on average $122 for this job

kaloyan13

I am available for work. Relevant Skills and Experience C, Linux, parallel programming Proposed Milestones $100 USD - Final milestone

$100 USD in 2 days
(338 Reviews)
7.0
koustav2006

Hi...i know how to write C program for process synchronization using semaphores and mutexes. i can complete the program in 48 hours. Relevant Skills and Experience I am programming in C and C++ for last 10 years. Pro More

$100 USD in 2 days
(58 Reviews)
5.4
amariitism

Hello We are highly motivated young technocrats from India. We are approachable, you can come to us if you have a struggle, we are happy to help. Team TiponTongue Relevant Skills and Experience Ph.D. in Computer S More

$250 USD in 7 days
(25 Reviews)
5.1
kcbStar

Hello, I have a lot of experience in the semaphores, mutex and multithread, process. So I want to do your project. give me the project. thank you. Relevant Skills and Experience C Programming, C++ Programming, Databa More

$155 USD in 3 days
(23 Reviews)
4.3
khanhptktmt

Let me do this project, I will cover all requirements you described Relevant Skills and Experience I can work with c/c++ on linux, i 'm also familiar with multi-thread models Proposed Milestones $120 USD - complete p More

$120 USD in 3 days
(5 Reviews)
2.9
sysdesigner13

Hi, bro I'm anxious to work with you for this project. As I've many experience with thread management, your job is not so difficult for me. I hope your kind contact. Thanks. Relevant Skills and Experience C More

$100 USD in 3 days
(2 Reviews)
2.0
kalyanprakash4

please discuss, keen to do this Relevant Skills and Experience c, c++ Proposed Milestones $155 USD - please discuss

$155 USD in 3 days
(5 Reviews)
2.1
tutorsonlinehub

Let's chat and decide the price. No need to pay upfront money, first check the work and quality and if you like the work then make the payment. Relevant Skills and Experience 12 year Experience in programming. Propos More

$276 USD in 3 days
(2 Reviews)
1.8
BilalMusani

3+ years experience working with C/C++. Relevant Skills and Experience C++, linux, threading Proposed Milestones $105 USD - Complete project Is c++ allowed?

$105 USD in 3 days
(1 Review)
1.9
expertdeveloper8

Hello, I've reviewed your complete job description, and I fulfill all the qualifications required for this project. I have 8 years+ experience in C programming, Software Architecture, Linux, I have completed 300+ pr More

$50 USD in 3 days
(0 Reviews)
0.0
ssi599a5dc458c8b

Let’s chat and discuss about price and work. 12 years experience in same filed you will get 100% correct work. No need to pay upfront money first check work quality and if you satisfied then pay. Relevant Skills and E More

$111 USD in 3 days
(0 Reviews)
0.0
bda57d55230d3dd7

I have total 6+ years of experience in C programming ,also in multithreading and synchronisation.I can complete the Project in 3 days Relevant Skills and Experience I have total 6+ years of experience in C programm More

$45 USD in 3 days
(0 Reviews)
0.0
PeyarTheriyaa

pm me to know the solutions.. though the best idea to simulate termination would be terminating all threads after a certain time simulating the end of day (park closing) Relevant Skills and Experience C, C++... an More

$100 USD in 3 days
(0 Reviews)
0.0
SayanProgrammer

Hey ! I'm SAYAN PROGRAMMER I've reviewed your complete job description, and I fulfill all the qualifications required for this project. I always try to provide good quality work to my clients. I have more than More

$30 USD in 2 days
(0 Reviews)
0.0
ItH0me

i will design a program similar to the one you required Relevant Skills and Experience C Programming, C++ Programming, Database Development, Linux, Shell Script Proposed Milestones $130 USD - program development

$130 USD in 2 days
(0 Reviews)
0.0