Find Jobs
Hire Freelancers

Project using synchronization of threads

$30-250 USD

In Progress
Posted almost 6 years ago

$30-250 USD

Paid on delivery
I am looking to get this project done for a fair price. It must be done in Java and I need it finished by sunday ,04-29-2018, 8pm newyork. If you have any questions please feel free to message me privately. Below are the instructions as well as an attached PDF of the project. This project will familiarize you with the creation and execution of threads, and with the use of the Thread class methods. In order to synchronize the threads you will have to use (when necessary), run( ), start( ), currentThread( ), getName( ), join( ), yield( ), sleep(time), isAlive( ), getPriority( ), setPriority( ), interrupt( ). In synchronizing threads, do NOT use any semaphores, wait( ), notify( ) or notifyAll( ). ELLIS ISLAND Tourists go to Ellis Island to learn about the beginnings of America, and about their ancestors who immigrated to this country. Every one and a half hours a documentary movie is presented. A movie session contains a presentation period, and the movie. Before the movie session starts, interested visitors wait in the lobby (use busy waiting). When the session starts, visitors check if there are available seats, and if yes, they take one of the available seats. Checking and updating the number of available seats represents a critical section and it should be done from inside of a synchronized method. If there are no free seats, the visitors leave the room. They will attempt to attend the next coming movie session (use busy waiting). They are, a bit, worried that they might not be able to attend any movie session, so they rush and check if there are available seats in the next presentation. In order to do so, they increase their priority (use getPriority and setPriority). Note: this should happen for a very short time and after the check, the priority is reset back to default. If the next session is already full they give up (use yield() to simulate give up) and move on in visiting the museum. Visitors that attend the movie session will next listen to the speaker’s presentation (busy waiting). After the watching the movie they will also move on in visiting the museum. Before the movie starts, a speaker will give a short introduction to the present audience. When the presentation ends, everybody watches the movie (sleep of fixed time). At the end of the day, when the museum is closing, all visitors will leave. They will do this in decreasing order of their name (id) (this must be implemented using isAlive() and join()) The speaker waits for the time to start the presentation (by sleeping for a time that is long enough so that it will be interrupted when times comes. (use interrupt( ) and isInterrupted()). At the end of the day the speaker will leave. In order to keep track of the time, we need an additional thread, named clock. The clock will signal when a session starts, when a session ends, and when it is the end of the day. (This will be implemented by having the clock sleep for fixed interval of time) Between movie sessions we should have a break of 15 minutes. Initial values: theater capacity: 6 Num_visitors: 15 Number_sessions/day: 2 Using Java programming, synchronize the three types of threads, visitor(s), speaker, clock, in the context of the problem. Closely follow the implementation requirements. Use appropriate [login to view URL]( ) statements and the age( ) method to reflect the time of each particular action done by a specific thread. This is necessary for us to observe how the synchronization is working.
Project ID: 16813487

About the project

15 proposals
Remote project
Active 6 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
Dear Sir I read your description carefully I ever done similar project using thread (wait ,sleep functions) I just joined in freelance but i started long ago I am full confident to complete your project and I do my best if you let me bid on yours. I focus on client's credit than money. I want to discuss more in detail. Thank you.
$88 USD in 1 day
5.0 (5 reviews)
2.1
2.1
15 freelancers are bidding on average $145 USD for this job
User Avatar
I am a full time developer and have high skills in java, javafx, java swing and junit testing so I can complete this project. My price and time is negotiable. Let's discuss details via chat. I'll provide best service.
$155 USD in 1 day
4.9 (250 reviews)
7.5
7.5
User Avatar
Hi there, I am java developer. I have strong expertise in data structure, algorithms and multi threading. I just read the details from attached pdf, its an easy job for me. Message me, we can discuss over chat.
$500 USD in 1 day
4.9 (109 reviews)
6.2
6.2
User Avatar
Note: I have done the similar work which you need. 11 Years of Experience with best start ups in Java & J2EE technologies, want to do the things right at first hand. Looking to work independently and to learn through new challenges. Will deliver the best, working as an Architect. Would be glad to hear from you, once you share your project requirement, will provide you the detailed design and implementation plan. I am always ready to respond without any delay and work in real time manner.
$100 USD in 1 day
4.7 (25 reviews)
4.8
4.8
User Avatar
Hello sir, I have 4 year experience in java spring and hibernate. for more info ping me...............................
$155 USD in 3 days
4.4 (5 reviews)
4.5
4.5
User Avatar
Hi, I have read the PDF attached. I need explaination on a few points and then we can discuss about the budget. I can deliver it before sunday so that no penalty for you
$220 USD in 1 day
5.0 (11 reviews)
4.1
4.1
User Avatar
HI, I am a java expert and i'm interested in the development of your project as it falls within my area of expertise, therefore i wold love to apply for the development of your project. IKindly contact me to discuss the details
$61 USD in 3 days
5.0 (4 reviews)
3.1
3.1
User Avatar
he worked parallel computing in those cases with Java and C, I have done similar work with parking lots, fairs, diners, philosophers and similar problems
$111 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Hi, I am an expert at Java and professionally work using this technology for many years. This is also my day job so I normally do similar stuff at my work. I have more than enough expertise to get your project done. This is a very simple project and I can easily do it for you. Since you need it before 29th, I would request you to award it soon. Also, it will be helpful if you can provide a few test cases to test the output. I would be glad to help you out. Looking forward to working with you. Thank-you
$60 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
United States
0.0
0
Payment method verified
Member since Apr 28, 2018

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.