Project using synchronization of threads

Completed Posted Nov 19, 2013 Paid on delivery
Completed 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 Wednesday November 20th, around 5PM eastern time zone. 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 [url removed, login to view]( ) 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.

Java

Project ID: #5143163

About the project

11 proposals Remote project Active Nov 19, 2013

Awarded to:

jeal4real

Good day , I am a very good Java programmer and I have done several Java projects with good review on freelancer and in my country. I have also worked thoroughly with multithreading (Runnable, Thread, and [login to view URL] More

$100 USD in 3 days
(12 Reviews)
4.4

11 freelancers are bidding on average $66 for this job

choks1991

Hi..here is java programmer for ur help..I have read ur requirement ..i can develop this project using synchronization of threads. Thank you

$61 USD in 1 day
(2 Reviews)
2.6
cubibd

Hi I've worked with Java multi-threading several times. If you give me the project now, I can finish it easily in due time. Thanks

$49 USD in 1 day
(14 Reviews)
4.5
dipakjadhav08

I have 4+ years experience in java. I can help you to solve the problem. Can I use executor framework?

$50 USD in 0 days
(11 Reviews)
3.2
IMSeriousBidder

Hello Friend, I am a senior Java developer, I can complete the project by teh deadline please consider my serious bid. Thanks&Best Bing

$135 USD in 1 day
(102 Reviews)
7.2
szymszteinsl

Hi! I am professional C/C++/C#/Java programmer. I can do this project with highest quality. Best Regards, Szymszteinsl

$100 USD in 1 day
(14 Reviews)
4.7
DucNA

Hi guy, I've read your document. I can do it. Pls check my page to get more info about me (passed exams, previous project, ...). Best regards, Duc Nguyen

$50 USD in 0 days
(40 Reviews)
4.9
vahid01

Hi. I can help you on this project. I will provide the program and a document for it. please give me a chance to prove my ability. Thank you.

$50 USD in 1 day
(3 Reviews)
2.6
einfachinfotech

hi.. i m currently working in infyosis in java ..i have gone through the project and even the pdf file that you have attached..i will work for you as we have worked on application book my show ..which is resemblance o More

$50 USD in 1 day
(0 Reviews)
0.0
soniranjeet

.........................................................................................................................................................

$55 USD in 3 days
(0 Reviews)
0.0
FulvioDiMaria

Hi, i can do your work easily. I've done a lot of this kind of problems in the years of university, considering them some funny games. I've a lot of experience with java and multithreaded applications. I plan to real More

$30 USD in 1 day
(0 Reviews)
0.0