Skip to content

Player lost message and all players lost #6

Answered by Troublor
VincentLam386 asked this question in Q&A
Discussion options

You must be logged in to vote
  1. That is the race you need to deal with when doing multithreading programing. The consistent behavior should be that there is only one winning message.
    If two winning messages pop up, the serializability property is violated, i.e., if we only use one thread to deal with all players, there is never the case that two winning messages are shown.

  2. It should go back to main menu. It should be a bug. But, this is not part of the grading scheme of PA3. So whether or not returning to main menu will not affect the hidden tests.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
3 replies
@VincentLam386
Comment options

@Troublor
Comment options

@VincentLam386
Comment options

Answer selected by VincentLam386
Comment options

You must be logged in to vote
3 replies
@VincentLam386
Comment options

@DelusionArun
Comment options

@DelusionArun
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants