Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project 2 test 7_4 #578

Open
Shandon96 opened this issue Nov 30, 2020 · 5 comments
Open

Project 2 test 7_4 #578

Shandon96 opened this issue Nov 30, 2020 · 5 comments
Labels
🖱️ Java General Questions with regards to Java or its API

Comments

@Shandon96
Copy link

Description

Hi guys, I'm on the last leg of project 2, but I don't know how to even start debugging test 7_4. Does anyone know the inputs, or any advice on what might be the problem? Any help is highly appreciated!
image

Topic:

Specific Topics this question is related to (If Any)

Screenshots (if any):

Insert Images here if necessary

@Shandon96 Shandon96 added the 🖱️ Java General Questions with regards to Java or its API label Nov 30, 2020
@aaron-ljx
Copy link

The inputs for 7_4 are 2, 5, 0, 10, 1000, 7, 1, 1, 0, 0.5. Best of luck :)

@frisciliasultan
Copy link

Seems like there is something wrong with the queue of the servers / waitEvent. Have you checked if you used the correct maxQueue? If it's correct, you might want to print out the servers and their queue status to see what went wrong.

@itmeruoxin
Copy link

you can try printing out the servers (with their queue lengths) and spot any unexpected jump/drop. might help in finding out where the transition went wrong

@yaphuiyi
Copy link

yaphuiyi commented Nov 30, 2020

Try printing out your the number of customers in queue when each customer arrives, and check whether the queue number has been updated correctly! Helped me alot for debugging

@Shandon96
Copy link
Author

Thanks so much everyone!! Especially @aaron_ljx for the inputs, they were really helpful. I'm left with javadocs and checkstyles. All the best to the rest of us who are still struggling :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🖱️ Java General Questions with regards to Java or its API
Projects
None yet
Development

No branches or pull requests

5 participants