Can you do this JAVA?

Your task is to simulate of college and classrooms: There are four kinds of threads: students, visitors, monitor and a one Lecturer per classroom. students must wait to enter classroom if class is running, enter, and then sitDown. At some point, the Lecturer enters the classroom. When the Lecturer is in the classroom, no one may enter, and the students may not leave. visitors may leave. Once all students check in, the Lecturer can StartLecture. After some time, the Lecturer leaves and all students can leave.

To make these requirements more specific, let’s give the threads some functions to execute, and put constraints on those functions.

• students must invoke enter, sitDown, and leave.

• The Lecturer invokes enter, startLecture and leave. • visitors invoke enter, sitDown and leave.

• While the Lecturer is in the classroom, no one may enter and students may not leave.

• The Lecturer cannot startLecture until all students who have entered have also sitDown.

• At any point of time any classroom may have only one lecturer.

• Classroom capacity should not exceed limit. Visitors are always low in count (less than 5).

• Add a monitor thread to keep printing the status of each class as follows Simulate a college with few classrooms

{W201 (capacity 60), W202(capacity 60), W101 (Capacity 20), JS101 Capacity (30)} and

lecturers {Osama, Barry, Faheem, Alex, Aqeel, Waseem} that circulate between classes.

Hints: Lecturer can use a binary semaphore to access classroom so one lecturer in class at any time students and visitors can use counted semaphores to access classroom. You can use locks, barriers, semaphores.

The running of the program should show something like the table below, that is updating every 2 seconds

Навыки: Java

Показать больше: hangman game class java finished status, can detect yahoo status, can java myspace pages, can java applet joomla, can java crawler can crawl forums, can java softphone web, can change calendar status vtiger, can java program ordering system, phone numbers people can java assignment malaysia, can message browser status bar, can java program read email, can java save data mysql, java roaming status, can java information http interface, can view facebook status website, can freeswitch report status phone line, can java nice gui windows, can birthday image status, can java asterisk, toggle button java check status

О работодателе:
( 48 отзыв(-а, -ов) ) Palos Hills, United States

ID проекта: #28815839



An IT Based Company with experience of 5 years at your service WHY YOU SHOULD HIRE US ? 1)We are expert in Java, C++, C#, Python, Digital Marketing, Data Entry, Data Processing, Sql Data Processing, Web Scrapping,Repo Больше

$4 USD / час
(79 отзывов(-а))

6 фрилансеров(-а) готовы выполнить эту работу в среднем за $7/час


Hello JAVA EXPERT I have read your description and I am so interested in your project. You can see well experienced and skillful Java +15 years of experience in software development. Confident in your project and I can Больше

$5 USD / час
(34 отзывов(-а))

Hey , im a computer science engineer with large experience on Java , i can do this task

$4 USD / час
(21 отзывов(-а))

Alright. I am a java expert with 5 years of experience and would love to work with you. I will provide you top class quality work. Let's head over to chat and discuss more Regards Anas Z

$2 USD / час
(9 отзывов(-а))

Greetings, Your post for the project stood out to me because it is extremely similar to the work I have provided to other clients. I have more than 9 years of experience in desktop, web and mobile development wit Больше

$10 USD / час
(0 отзывов(-а))

Hi, I have expertise in Java but I need to discuss your requirement in detail so please get back to me to discuss it. Here you can see my best work in Java: [login to view URL] Regards, Amul Choudhary

$15 USD / час
(0 отзывов(-а))