Find Jobs
Hire Freelancers

Project using synchronization of threads

$30-250 USD

Probíhající
Zveřejněno skoro před 6 roky

$30-250 USD

Zaplaceno při doručení
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.
IČ projektu: 16813487

O projektu

15 nabídky
Vzdálený projekt
Aktivní před 6 roky

Chcete si vydělat nějaké peníze?

Výhody podávání nabídek na Freelancer

Stanovte si rozpočet a časový rámec
Získejte za svou práci zaplaceno
Načrtněte svůj návrh
Registrace a podávání nabídek je zdarma
Uděleno:
Avatar uživatele
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 v 1 dni
5,0 (5 recenze)
2,1
2,1
15 freelanceři nabízejí v průměru $145 USD za tuto práci
Avatar uživatele
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 v 1 dni
4,9 (250 recenze)
7,5
7,5
Avatar uživatele
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 v 1 dni
4,9 (109 recenze)
6,2
6,2
Avatar uživatele
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 v 1 dni
4,7 (25 recenze)
4,8
4,8
Avatar uživatele
Hello sir, I have 4 year experience in java spring and hibernate. for more info ping me...............................
$155 USD v 3 dnech
4,4 (5 recenze)
4,5
4,5
Avatar uživatele
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 v 1 dni
5,0 (11 recenze)
4,1
4,1
Avatar uživatele
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 v 3 dnech
5,0 (4 recenze)
3,1
3,1
Avatar uživatele
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 v 1 dni
0,0 (0 recenze)
0,0
0,0
Avatar uživatele
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 v 1 dni
0,0 (0 recenze)
0,0
0,0

O klientovi

Pochází z UNITED STATES
United States
0,0
0
Ověřená platební metoda
Členem od dub 28, 2018

Ověření klienta

Díky! Poslali jsme vám e-mailem odkaz pro získání kreditu zdarma.
Při odesílání e-mailu se něco pokazilo. Zkuste to prosím znovu.
Registrovaných uživatelů Zveřejněných projektů
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Načítání náhledu
Bylo uděleno povolení ke geolokaci.
Vaše doba přihlášení vypršela a byli jste odhlášeni. Přihlaste se znovu.