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

Hit AssertionFailureError while running case Thread.Mytester.LotterySchedulerVAR4 #23

Open
thinkhy opened this issue Jul 12, 2014 · 0 comments
Assignees
Labels
Milestone

Comments

@thinkhy
Copy link
Owner

thinkhy commented Jul 12, 2014

 /* TestID 3: Test ThreadGrader7 (no ticket transfers (priority donation))        */
    public static void LotterySchedulerVAR4() {                                /*@B4A*/
        System.out.print("++MyTester: enter LotterySchedulerVAR4\n");          /*@B4A*/

        PriopritySchedulerVAR1();                                              /*@B4A*/
        PriopritySchedulerVAR2();                                              /*@B4A*/
        PriopritySchedulerVAR3();                                              /*@B4A*/
        PriopritySchedulerVAR4();                                              /*@B4A*/

        System.out.print("++MyTester: leave LotterySchedulerVAR4\n");          /*@B4A*/
    }

[LotteryQueue.pickNextThread] Sum: 2   LotteryValue: 1
[ThreadState.getEffectivePriority] holder thread: Thread listner (#131) Size: 2
[PriorityQueue.acquire] thread: Thread listner (#131) holder: null
####### runNextThread: nextThread = Thread listner
Switching from: Thread speaker (#130) to: Thread listner (#131)
Running thread: Thread listner (#131)
[PriorityQueue.acquire] thread: Thread listner (#131) holder: nachos.threads.LotteryScheduler$ThreadState@31023102

nachos.machine.AssertionFailureError
        at nachos.machine.Lib.assertTrue(Lib.java:77)
        at nachos.threads.PriorityScheduler$ThreadState.acquire(PriorityScheduler.java:420)
        at nachos.threads.PriorityScheduler$PriorityQueue.acquire(PriorityScheduler.java:173)
        at nachos.threads.Lock.acquire(Lock.java:53)
        at nachos.threads.Condition2.sleep(Condition2.java:48)
        at nachos.threads.Communicator.listen(Communicator.java:86)
        at nachos.threads.Communicator$Listener.run(Communicator.java:130)
        at nachos.threads.KThread.runThread(KThread.java:162)
        at nachos.threads.KThread.access$000(KThread.java:30)
        at nachos.threads.KThread$1.run(KThread.java:150)
        at nachos.machine.TCB.threadroot(TCB.java:240)
        at nachos.machine.TCB.access$100(TCB.java:25)
        at nachos.machine.TCB$1.run(TCB.java:93)
        at java.lang.Thread.run(Thread.java:738)
Please enter your choice:
Bye
@thinkhy thinkhy added this to the Project 2 milestone Jul 12, 2014
@thinkhy thinkhy added the bug label Jul 12, 2014
@thinkhy thinkhy self-assigned this Jul 12, 2014
thinkhy added a commit that referenced this issue Jul 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant