Question

Provide a simulation of an elevator using Tasks (Threads), Message Passing (Queues), and State Machines (FSMs). In this quiz, you must save your project in Wokwi and put the URL here.

          Provide a simulation of an elevator using Tasks (Threads), Message Passing (Queues), and State Machines (FSMs). In this quiz, you must save your project in Wokwi and put the URL here.
        

Added by Todd S.

Computer Science and Information Technology
Computer Science and Information Technology
Trishna Knowledge Systems 2018 Edition
AceChat toggle button
Close icon
Ace pointing down

Please give Ace some feedback

Your feedback will help us improve your experience

Thumb up icon Thumb down icon
Thanks for your feedback!
Profile picture
Provide a simulation of an elevator using Tasks (Threads), Message Passing (Queues), and State Machines (FSMs). In this quiz, you must save your project in Wokwi and put the URL here.
Close icon
Play audio
Feedback
Powered by NumerAI
Danielle Fairburn Jennifer Stoner
Kathleen Carty verified

Akash M and 57 other subject AP CS educators are ready to help you.

Ask a new question

*

Labs

-

Want to see this concept in action?

NEW

Explore this concept interactively to see how it behaves as you change inputs.

View Labs

*

Key Concepts

-
Key Concept
Premium Feature
Explore the core concept behind this problem.
Play button
Key Concept
Premium Feature
Explore the core concept behind this problem.
Your browser does not support the video tag.

*

Recommended Videos

-
in-java-code-please-question-2-thread-ship-island-port-simulation-40-you-need-to-design-a-ship-island-port-simulation-you-are-going-to-have-at-least-20-ships-each-a-time-question-2-project-h-71834

Question 2) Thread: ship-island port simulation (40%) You need to design a ship-island port simulation. You are going to have at least 20 ships. Each ship runs as a thread. They all need to get to a port at an island. Island can only have one ship at a time. Question 2 project has two modes "Unsynchronized mode" and "Synchronized mode". The ships may crash under the "Unsynchronized mode" because of race conditions. It shall run safely under the "Synchronized mode". Design YOUR OWN GUI of the project. Two modes are provided ("Unsynchronized mode" and "Synchronized mode"). "Unsynchronized mode" You can build your ship class to extend Thread class or implements Runnable class. When program starts, ships move to the island. If one ship moves to the island, all other ships try to wait until the ship finishes the job (Allows race conditions happen). Ships may crash if there are more than one ship move to island at a time. Your program detects and prints message on the GUI when ships crash. Island icon changes when a ship arrives. "Synchronized mode" You can synchronize your block of code or method. Only one ship moves at a time. (NO race conditions) All ships must finish the jobs safely. Answer the following question as comments in your Ship class (put question and your answer on the first line of your code). Question: "Which object have you chosen for the synchronize? Why?"

Akash M.

write-a-program-for-a-deterministic-push-down-automata-simulator-in-this-case-though-your-simulator-should-include-a-stack-that-follows-the-rules-of-a-push-down-automata-keep-in-mind-that-yo-79117

Write a program for a deterministic push-down automaton simulator. In this case, though, your simulator should include a stack that follows the rules of a push-down automaton. Keep in mind that you will need to change your input file so that the transitions are of the kind. I want this to be as general as possible, with the machine defined in an external text file. The output of this can be the same as the DFSM simulator. Simply indicate whether the machine accepts or rejects each input string. In Java.

Akash M.

demonstrate-that-each-of-the-following-situations-can-be-represented-as-a-basic-queuing-process-by-identifying-its-components-how-would-you-define-the-corresponding-queuing-system-a-the-chec-37536

Demonstrate that each of the following situations can be represented as a basic queuing process by identifying its components. How would you define the corresponding queuing system? a. The checkout stations in a supermarket b. The tollbooth at a road-toll checkpoint c. An auto shop or garage d. An emergency rescue unit e. A plumber f. A bus station g. The materials-handling equipment at a production facility

Sri K.


*

Recommended Textbooks

-
Computer Science and Information Technology

Computer Science and Information Technology

Trishna Knowledge Systems 2018 Edition
achievement 1,446 solutions
Introduction to Programming Using Python

Introduction to Programming Using Python

Y. Daniel Liang 1st Edition
achievement 1,406 solutions
Computer Science - An Overview

Computer Science - An Overview

Glenn Brookshear, Dennis Brylow 12th Edition
achievement 1,356 solutions

*

Transcript

-
00:01 So here according to the situation or the case given in a question, so we can stay so we have to choose and to synchronize the block of code synchronize the block code.
00:28 We can choose that because by because that moves moves the ship because it moves the ship to iceland.
00:42 That's why we can choose this part that synchronize the block of code because it moves the ship to the iceland this ensure that because it ensure that only one ship can move only one ship can move to iceland at a time which can prevent preventing race conditions race conditions and potential crashes...
Need help? Use Ace
Ace is your personal tutor. It breaks down any question with clear steps so you can learn.
Start Using Ace
Ace is your personal tutor for learning
Step-by-step explanations
Instant summaries
Summarize YouTube videos
Understand textbook images or PDFs
Study tools like quizzes and flashcards
Listen to your notes as a podcast
Continue solving this problem
Create a free account to:
  • View full step-by-step solution
  • Ask follow-up questions with Ace AI
  • Save progress and study later
Continue Free
Join the community

18,000,000+

Students on Numerade


Trusted by students at 8,000+ universities

Numerade

Get step-by-step video solution
from top educators

Continue with Clever
or



By creating an account, you agree to the Terms of Service and Privacy Policy
Already have an account? Log In

A free answer
just for you

Watch the video solution with this free unlock.

Numerade

Log in to watch this video
...and 100,000,000 more!


EMAIL

PASSWORD

OR
Continue with Clever