SmartExpert

(118)

$30/per page/Negotiable

About SmartExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Accounting,Business & Finance See all
Accounting,Business & Finance,Economics,English,HR Management,Math Hide all
Teaching Since: Apr 2017
Last Sign in: 56 Weeks Ago, 4 Days Ago
Questions Answered: 7570
Tutorials Posted: 7352

Education

  • BS,MBA, PHD
    Adelphi University/Devry
    Apr-2000 - Mar-2005

Experience

  • HOD ,Professor
    Adelphi University
    Sep-2007 - Apr-2017

Category > Business & Finance Posted 26 Feb 2019 My Price 8.00

Write a program to simulate a bus traveling between 5 stations and repeat cycle

Concurrent & Parallel Programming

MSc

Assignment 3 -  Total weight 10%

Question 

Write a program to simulate a bus traveling between 5 stations and repeat cycle, the bus can take 50 persons , at each station random number of persons get off the bus and random number of person get on the bus, consider these cases

-         If bus does not have enough space for all persons , persons will have to stay in station for next cycle

-         Persons cannot get on bus until person on bus get down first.

-         You can simulate bus trip with a fixed delay between each stop

Use semaphores to control access to the bus and other utilities to control access to bus Use thread pools to manage thread management.

 

You need to submit the Java program in native format, NO Word Doc or PDF or txt

 

 

Answers

(118)
Status NEW Posted 26 Feb 2019 09:02 AM My Price 8.00

-----------

Attachments

1551174887-Bus Simulation.zip
file 1551174904-765839_2_bustemplatetxt-4946txt-4994.txt preview (540 words )
/ ----------- B-----------us ----------- ----------- ----------- ----------- T-----------hre-----------ad -----------The----------- bu-----------s c-----------irc-----------les----------- fo-----------rev-----------er -----------thr-----------oug-----------h 5----------- st-----------ati-----------ons-----------. T-----------he -----------bus----------- ----------- ----------- ----------- ----------- ----------- ----------- ca-----------pac-----------ity----------- is----------- li-----------mit-----------ed -----------to -----------50 -----------sea-----------ts -----------(us-----------ing----------- a -----------sem-----------aph-----------ore-----------). ----------- ----------- ----------- ----------- ----------- ----------- -----------The----------- bu-----------s c-----------ont-----------rol-----------s e-----------ntr-----------y a-----------nd -----------exi-----------t d-----------oor-----------s f-----------or -----------eac-----------h s-----------tat-----------ion----------- ----------- ----------- ----------- ----------- ----------- ----------- (-----------usi-----------ng -----------ree-----------ntr-----------ant----------- lo-----------cks-----------). -----------Pas-----------sen-----------ger-----------s m-----------ust----------- le-----------ave----------- be-----------for-----------e n-----------ew ----------- ----------- ----------- ----------- ----------- ----------- ----------- pa-----------sse-----------nge-----------rs -----------boa-----------rd.----------- On-----------ly -----------the----------- do-----------or -----------of -----------the----------- st-----------ati-----------on -----------whe-----------re -----------the----------- bu-----------s ----------- ----------- ----------- ----------- ----------- ----------- -----------is -----------sto-----------ppe-----------d c-----------an -----------ope-----------n. ----------- ----------- ----------- Pa-----------sse-----------nge-----------rs ----------- ----------- Th-----------rea-----------d
Not Rated(0)