Skip to content

MySemaphore #1

Description

@retuenepz

这个程序的if else部分似乎是错误的。请作者关注
if(position.availablePermits()>0){
System.out.println("顾客["+this.id+"]进入厕所,有空位");
}
else{
System.out.println("顾客["+this.id+"]进入厕所,没空位,排队");
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions